benilla-re systems structs docs

system net · source

net: layout

Where the system's code lies, what runs it at startup, and what nothing runs.

net owns three runs of code. The first, 0x536eb0 to 0x5388a0, holds NetClient.cpp and NetInternal.cpp. The second, 0x5a9e00 to 0x5be840, holds in order ClientServices.cpp, FriendList.cpp, the account data and download code, ChecksumExecutables.cpp, Login.cpp, the realm connection, WowConnection.cpp, WDataStore.cpp, Grunt.cpp and AddressList.cpp. The third, 0x5d1420 to 0x5d3f20, holds the SHA-1 code, the SHA-1 random pool, SRP6 and its big-number helpers. The files of the first two runs open their code with their static initializers; the third run's code has one, the +∞ 0x5d3b20 near its end, and starts at 0x5d1420, the SHA-1 compression, right after IGxuFontGlyph.cpp's last initializer. Of the 1,146 functions in the three runs, 552 are those initializers and their thunks, and 81 are unreached. The roots are the static initializers and every function that another system's code calls or an aligned data dword names. All 321 primitives in the closure have a bit-exact test.

The system's other docs are wire, threads, dispatch, messages, session, connection, login, logonlink, dial, crypto, friends, who, accountdata and download.

Roots: 0x536eb0, 0x536ed0, 0x536ef0, 0x536f20, 0x536f70, 0x536fa0, 0x536fd0, 0x537000, 0x537030, 0x537060, 0x537090, 0x5370c0, 0x5370f0, 0x537120, 0x537150, 0x537180, 0x5371b0, 0x5371e0, 0x537200, 0x537230, 0x537260, 0x537290, 0x5372c0, 0x5372f0, 0x537320, 0x5374f0, 0x537500, 0x537510, 0x537520, 0x537530, 0x537560, 0x537600, 0x5376f0, 0x5377f0, 0x537a50, 0x537b00, 0x537b90, 0x537c00, 0x537c30, 0x537ce0, 0x537d00, 0x537d40, 0x5380c0, 0x5380e0, 0x538100, 0x538130, 0x538180, 0x5381b0, 0x5381e0, 0x538210, 0x538240, 0x538270, 0x5382a0, 0x5382d0, 0x538300, 0x538330, 0x538360, 0x538390, 0x5383c0, 0x5383f0, 0x538410, 0x538440, 0x538470, 0x5384a0, 0x5a9e00, 0x5a9e20, 0x5a9e40, 0x5a9e70, 0x5a9ea0, 0x5a9ed0, 0x5a9f00, 0x5a9f30, 0x5a9f60, 0x5a9f90, 0x5a9fc0, 0x5a9ff0, 0x5aa020, 0x5aa050, 0x5aa080, 0x5aa0b0, 0x5aa0e0, 0x5aa110, 0x5aa140, 0x5aa160, 0x5aa190, 0x5aa1c0, 0x5aa1f0, 0x5aa220, 0x5aa270, 0x5aa3d0, 0x5aaa50, 0x5aaa70, 0x5aaa90, 0x5aaac0, 0x5aaaf0, 0x5aac30, 0x5aad70, 0x5aae70, 0x5aaeb0, 0x5aaef0, 0x5aaf60, 0x5aaff0, 0x5ab0d0, 0x5ab0e0, 0x5ab260, 0x5ab270, 0x5ab280, 0x5ab2d0, 0x5ab2e0, 0x5ab2f0, 0x5ab300, 0x5ab330, 0x5ab340, 0x5ab350, 0x5ab360, 0x5ab370, 0x5ab380, 0x5ab390, 0x5ab3d0, 0x5ab5a0, 0x5ab5d0, 0x5ab600, 0x5ab610, 0x5ab620, 0x5ab9b0, 0x5abae0, 0x5abb00, 0x5abb10, 0x5abb90, 0x5abd40, 0x5abd70, 0x5abd80, 0x5abdd0, 0x5abde0, 0x5abdf0, 0x5ac5a0, 0x5ac5c0, 0x5ac5e0, 0x5ac610, 0x5ac640, 0x5ac670, 0x5ac6a0, 0x5ac6d0, 0x5ac700, 0x5ac730, 0x5ac760, 0x5ac790, 0x5ac7c0, 0x5ac7f0, 0x5ac820, 0x5ac850, 0x5ac880, 0x5ac8a0, 0x5ac8d0, 0x5ac900, 0x5ac930, 0x5ac960, 0x5ac990, 0x5ac9c0, 0x5ad210, 0x5ad290, 0x5ad2d0, 0x5ad340, 0x5ad400, 0x5ad460, 0x5ad520, 0x5ad570, 0x5ad5a0, 0x5ad5f0, 0x5ad640, 0x5adc00, 0x5adc30, 0x5ae2d0, 0x5af810, 0x5af830, 0x5affa0, 0x5affc0, 0x5afff0, 0x5b0020, 0x5b0050, 0x5b0080, 0x5b00b0, 0x5b00e0, 0x5b0110, 0x5b0140, 0x5b0170, 0x5b01a0, 0x5b01d0, 0x5b0200, 0x5b0230, 0x5b0260, 0x5b0280, 0x5b02b0, 0x5b02e0, 0x5b0310, 0x5b0340, 0x5b0390, 0x5b03b0, 0x5b0d60, 0x5b0d80, 0x5b0db0, 0x5b0de0, 0x5b0e10, 0x5b0e40, 0x5b0e70, 0x5b0ea0, 0x5b0ed0, 0x5b0f00, 0x5b0f30, 0x5b0f60, 0x5b0f90, 0x5b0fc0, 0x5b0ff0, 0x5b1020, 0x5b1040, 0x5b1070, 0x5b10a0, 0x5b10d0, 0x5b1100, 0x5b1150, 0x5b12f0, 0x5b1310, 0x5b1340, 0x5b1370, 0x5b13a0, 0x5b13d0, 0x5b1400, 0x5b1430, 0x5b1460, 0x5b1490, 0x5b14c0, 0x5b14f0, 0x5b1520, 0x5b1550, 0x5b1580, 0x5b15b0, 0x5b15d0, 0x5b1600, 0x5b1630, 0x5b1660, 0x5b1690, 0x5b16e0, 0x5b1700, 0x5b1720, 0x5b1750, 0x5b17a0, 0x5b17d0, 0x5b1800, 0x5b1830, 0x5b1860, 0x5b1890, 0x5b18c0, 0x5b18f0, 0x5b1920, 0x5b1950, 0x5b1980, 0x5b19b0, 0x5b19e0, 0x5b1a10, 0x5b1a30, 0x5b1a60, 0x5b1a90, 0x5b1ac0, 0x5b1af0, 0x5b1b00, 0x5b1b70, 0x5b1bd0, 0x5b1c50, 0x5b1c70, 0x5b1f10, 0x5b1f40, 0x5b1fb0, 0x5b2070, 0x5b20d0, 0x5b2860, 0x5b3520, 0x5b3540, 0x5b3560, 0x5b3590, 0x5b35e0, 0x5b3610, 0x5b3640, 0x5b3670, 0x5b36a0, 0x5b36d0, 0x5b3700, 0x5b3730, 0x5b3760, 0x5b3790, 0x5b37c0, 0x5b37f0, 0x5b3820, 0x5b3850, 0x5b3870, 0x5b38a0, 0x5b38d0, 0x5b3900, 0x5b3930, 0x5b3a30, 0x5b3bf0, 0x5b3e00, 0x5b3e40, 0x5b3e70, 0x5b48e0, 0x5b4900, 0x5b4950, 0x5b4980, 0x5b49b0, 0x5b49e0, 0x5b4a10, 0x5b4a40, 0x5b4a70, 0x5b4aa0, 0x5b4ad0, 0x5b4b00, 0x5b4b30, 0x5b4b60, 0x5b4b90, 0x5b4bc0, 0x5b4be0, 0x5b4c10, 0x5b4c40, 0x5b4c70, 0x5b4ca0, 0x5b4ce0, 0x5b6fd0, 0x5b7050, 0x5b71c0, 0x5b71d0, 0x5b7590, 0x5b75c0, 0x5b7650, 0x5b7850, 0x5b7930, 0x5b7ad0, 0x5b7af0, 0x5b7b20, 0x5b7b40, 0x5b7b60, 0x5b7bb0, 0x5b7be0, 0x5b7c00, 0x5b7c20, 0x5b7c50, 0x5b7ca0, 0x5b7cd0, 0x5b7d00, 0x5b7d30, 0x5b7d60, 0x5b7d90, 0x5b7dc0, 0x5b7df0, 0x5b7e20, 0x5b7e50, 0x5b7e80, 0x5b7eb0, 0x5b7ee0, 0x5b7f10, 0x5b7f30, 0x5b7f60, 0x5b7f90, 0x5b7fc0, 0x5b7ff0, 0x5b87a0, 0x5b8890, 0x5bb230, 0x5bb310, 0x5bb3c0, 0x5bb3d0, 0x5bc4c0, 0x5bc4d0, 0x5bc630, 0x5bc650, 0x5bc6c0, 0x5bc7b0, 0x5bc830, 0x5bc970, 0x5bc990, 0x5bd480, 0x5bd4a0, 0x5bd580, 0x5bd5a0, 0x5be1a0, 0x5be1c0, 0x5be1f0, 0x5be210, 0x5be230, 0x5d3b20

Object files

The runs are bounded by the source paths their functions pass and by the static initializer slots that point into them. The C runtime's initializer table points into the runs only at initializer thunks, and the slots that point at the runs' initializers lie in one stretch of the table, broken only by four that point elsewhere.

Addresses: 0x536eb0, 0x5388a0, 0x5a9e00, 0x5be840, 0x5d1420, 0x5d3f20, 0x827000, 0x5d13d0, 0x5d13e0, 0x5d13f0, 0x5d1400 Confidence: verified Proof: one Test: none

The source paths are pushed at 0x537639 (NetClient.cpp), 0x538813 (NetInternal.cpp), 0x5ab1df (ClientServices.cpp), 0x5adc66 (FriendList.cpp), 0x5b1225 (ChecksumExecutables.cpp), 0x5b21e0 (Login.cpp), 0x5b4d64 (WowConnection.cpp), 0x5b74c4 (WDataStore.cpp), 0x5b8514 (Grunt.cpp) and 0x5be272 (AddressList.cpp). The code before 0x536eb0 passes interface strings; the code after 0x5388a0 passes DB/WowClientDB.h; after 0x5be840 it allocates CGxuLight lists; before 0x5d1420 it is IGxuFontGlyph.cpp, whose run opens with its +∞ at slot 0x82aaa0 and ends with its 2π and 1/2π, 0x5d13d0 and 0x5d13f0 (bodies 0x5d13e0, 0x5d1400), as a file that includes the shared header opens its run with its +∞ (systems/README, Object files); after 0x5d3f20 it is Trade_C.cpp. The slots run from 0x829b84 to 0x82aaac, broken by 0x82a9e4, which holds an initializer in the lighting code after the second run, and by IGxuFontGlyph.cpp's run, 0x82aaa0 to 0x82aaa8; 0x829b80, just before, holds an interface list initializer in the code before the first run. None touches data net code reads.

Static initializers

The 276 initializers are each a thunk, a jmp or a call five bytes long, and a body at the next 16-byte boundary. 266 bodies store one value in a global: most a float computed from constants (a square, a quotient, a doubling), the rest a copied dword or a counter. 300 of the 319 globals they write are read nowhere else. The others build the command tables of ClientLink (0x5b87b0) and ServerLink (0x5b88a0), list heads, the network globals, and the random pool (login). The 13 counters add 1 to 0xc2a3c4, calling the empty 0x5b71c0 at 1; the exit functions their thunks register subtract 1, calling the empty 0x5b71d0 at 0. 0x5aa2b0, registered alike, sets bit 0 of 0xc27d50.

Addresses: 0x536eb0, 0x536ec0, 0x536ed0, 0x536ee0, 0x536ef0, 0x536f00, 0x536f20, 0x536f30, 0x536f70, 0x536f80, 0x536fa0, 0x536fb0, 0x536fd0, 0x536fe0, 0x537000, 0x537010, 0x537030, 0x537040, 0x537060, 0x537070, 0x537090, 0x5370a0, 0x5370c0, 0x5370d0, 0x5370f0, 0x537100, 0x537120, 0x537130, 0x537150, 0x537160, 0x537180, 0x537190, 0x5371b0, 0x5371c0, 0x5371e0, 0x5371f0, 0x537200, 0x537210, 0x537230, 0x537240, 0x537260, 0x537270, 0x537290, 0x5372a0, 0x5372c0, 0x5372d0, 0x5372f0, 0x537300, 0x537320, 0x537330, 0x5380c0, 0x5380d0, 0x5380e0, 0x5380f0, 0x538100, 0x538110, 0x538130, 0x538140, 0x538180, 0x538190, 0x5381b0, 0x5381c0, 0x5381e0, 0x5381f0, 0x538210, 0x538220, 0x538240, 0x538250, 0x538270, 0x538280, 0x5382a0, 0x5382b0, 0x5382d0, 0x5382e0, 0x538300, 0x538310, 0x538330, 0x538340, 0x538360, 0x538370, 0x538390, 0x5383a0, 0x5383c0, 0x5383d0, 0x5383f0, 0x538400, 0x538410, 0x538420, 0x538440, 0x538450, 0x538470, 0x538480, 0x5384a0, 0x5384b0, 0x5a9e00, 0x5a9e10, 0x5a9e20, 0x5a9e30, 0x5a9e40, 0x5a9e50, 0x5a9e70, 0x5a9e80, 0x5a9ea0, 0x5a9eb0, 0x5a9ed0, 0x5a9ee0, 0x5a9f00, 0x5a9f10, 0x5a9f30, 0x5a9f40, 0x5a9f60, 0x5a9f70, 0x5a9f90, 0x5a9fa0, 0x5a9fc0, 0x5a9fd0, 0x5a9ff0, 0x5aa000, 0x5aa020, 0x5aa030, 0x5aa050, 0x5aa060, 0x5aa080, 0x5aa090, 0x5aa0b0, 0x5aa0c0, 0x5aa0e0, 0x5aa0f0, 0x5aa110, 0x5aa120, 0x5aa140, 0x5aa150, 0x5aa160, 0x5aa170, 0x5aa190, 0x5aa1a0, 0x5aa1c0, 0x5aa1d0, 0x5aa1f0, 0x5aa200, 0x5aa220, 0x5aa230, 0x5aa270, 0x5aa280, 0x5ac5a0, 0x5ac5b0, 0x5ac5c0, 0x5ac5d0, 0x5ac5e0, 0x5ac5f0, 0x5ac610, 0x5ac620, 0x5ac640, 0x5ac650, 0x5ac670, 0x5ac680, 0x5ac6a0, 0x5ac6b0, 0x5ac6d0, 0x5ac6e0, 0x5ac700, 0x5ac710, 0x5ac730, 0x5ac740, 0x5ac760, 0x5ac770, 0x5ac790, 0x5ac7a0, 0x5ac7c0, 0x5ac7d0, 0x5ac7f0, 0x5ac800, 0x5ac820, 0x5ac830, 0x5ac850, 0x5ac860, 0x5ac880, 0x5ac890, 0x5ac8a0, 0x5ac8b0, 0x5ac8d0, 0x5ac8e0, 0x5ac900, 0x5ac910, 0x5ac930, 0x5ac940, 0x5ac960, 0x5ac970, 0x5ac990, 0x5ac9a0, 0x5ac9c0, 0x5ac9d0, 0x5af810, 0x5af820, 0x5affa0, 0x5affb0, 0x5affc0, 0x5affd0, 0x5afff0, 0x5b0000, 0x5b0020, 0x5b0030, 0x5b0050, 0x5b0060, 0x5b0080, 0x5b0090, 0x5b00b0, 0x5b00c0, 0x5b00e0, 0x5b00f0, 0x5b0110, 0x5b0120, 0x5b0140, 0x5b0150, 0x5b0170, 0x5b0180, 0x5b01a0, 0x5b01b0, 0x5b01d0, 0x5b01e0, 0x5b0200, 0x5b0210, 0x5b0230, 0x5b0240, 0x5b0260, 0x5b0270, 0x5b0280, 0x5b0290, 0x5b02b0, 0x5b02c0, 0x5b02e0, 0x5b02f0, 0x5b0310, 0x5b0320, 0x5b0340, 0x5b0350, 0x5b0390, 0x5b03a0, 0x5b03b0, 0x5b03c0, 0x5b0d60, 0x5b0d70, 0x5b0d80, 0x5b0d90, 0x5b0db0, 0x5b0dc0, 0x5b0de0, 0x5b0df0, 0x5b0e10, 0x5b0e20, 0x5b0e40, 0x5b0e50, 0x5b0e70, 0x5b0e80, 0x5b0ea0, 0x5b0eb0, 0x5b0ed0, 0x5b0ee0, 0x5b0f00, 0x5b0f10, 0x5b0f30, 0x5b0f40, 0x5b0f60, 0x5b0f70, 0x5b0f90, 0x5b0fa0, 0x5b0fc0, 0x5b0fd0, 0x5b0ff0, 0x5b1000, 0x5b1020, 0x5b1030, 0x5b1040, 0x5b1050, 0x5b1070, 0x5b1080, 0x5b10a0, 0x5b10b0, 0x5b10d0, 0x5b10e0, 0x5b1100, 0x5b1110, 0x5b1150, 0x5b1160, 0x5b12f0, 0x5b1300, 0x5b1310, 0x5b1320, 0x5b1340, 0x5b1350, 0x5b1370, 0x5b1380, 0x5b13a0, 0x5b13b0, 0x5b13d0, 0x5b13e0, 0x5b1400, 0x5b1410, 0x5b1430, 0x5b1440, 0x5b1460, 0x5b1470, 0x5b1490, 0x5b14a0, 0x5b14c0, 0x5b14d0, 0x5b14f0, 0x5b1500, 0x5b1520, 0x5b1530, 0x5b1550, 0x5b1560, 0x5b1580, 0x5b1590, 0x5b15b0, 0x5b15c0, 0x5b15d0, 0x5b15e0, 0x5b1600, 0x5b1610, 0x5b1630, 0x5b1640, 0x5b1660, 0x5b1670, 0x5b1690, 0x5b16a0, 0x5b16e0, 0x5b16f0, 0x5b1700, 0x5b1710, 0x5b1720, 0x5b1730, 0x5b1750, 0x5b1760, 0x5b17a0, 0x5b17b0, 0x5b17d0, 0x5b17e0, 0x5b1800, 0x5b1810, 0x5b1830, 0x5b1840, 0x5b1860, 0x5b1870, 0x5b1890, 0x5b18a0, 0x5b18c0, 0x5b18d0, 0x5b18f0, 0x5b1900, 0x5b1920, 0x5b1930, 0x5b1950, 0x5b1960, 0x5b1980, 0x5b1990, 0x5b19b0, 0x5b19c0, 0x5b19e0, 0x5b19f0, 0x5b1a10, 0x5b1a20, 0x5b1a30, 0x5b1a40, 0x5b1a60, 0x5b1a70, 0x5b1a90, 0x5b1aa0, 0x5b1ac0, 0x5b1ad0, 0x5b3520, 0x5b3530, 0x5b3540, 0x5b3550, 0x5b3560, 0x5b3570, 0x5b3590, 0x5b35a0, 0x5b35e0, 0x5b35f0, 0x5b3610, 0x5b3620, 0x5b3640, 0x5b3650, 0x5b3670, 0x5b3680, 0x5b36a0, 0x5b36b0, 0x5b36d0, 0x5b36e0, 0x5b3700, 0x5b3710, 0x5b3730, 0x5b3740, 0x5b3760, 0x5b3770, 0x5b3790, 0x5b37a0, 0x5b37c0, 0x5b37d0, 0x5b37f0, 0x5b3800, 0x5b3820, 0x5b3830, 0x5b3850, 0x5b3860, 0x5b3870, 0x5b3880, 0x5b38a0, 0x5b38b0, 0x5b38d0, 0x5b38e0, 0x5b3900, 0x5b3910, 0x5b3930, 0x5b3940, 0x5b3a30, 0x5b3a40, 0x5b48e0, 0x5b48f0, 0x5b4900, 0x5b4910, 0x5b4950, 0x5b4960, 0x5b4980, 0x5b4990, 0x5b49b0, 0x5b49c0, 0x5b49e0, 0x5b49f0, 0x5b4a10, 0x5b4a20, 0x5b4a40, 0x5b4a50, 0x5b4a70, 0x5b4a80, 0x5b4aa0, 0x5b4ab0, 0x5b4ad0, 0x5b4ae0, 0x5b4b00, 0x5b4b10, 0x5b4b30, 0x5b4b40, 0x5b4b60, 0x5b4b70, 0x5b4b90, 0x5b4ba0, 0x5b4bc0, 0x5b4bd0, 0x5b4be0, 0x5b4bf0, 0x5b4c10, 0x5b4c20, 0x5b4c40, 0x5b4c50, 0x5b4c70, 0x5b4c80, 0x5b4ca0, 0x5b4cb0, 0x5b4ce0, 0x5b4cf0, 0x5b6fd0, 0x5b6fe0, 0x5b7050, 0x5b7060, 0x5b7850, 0x5b7860, 0x5b7ad0, 0x5b7ae0, 0x5b7af0, 0x5b7b00, 0x5b7b20, 0x5b7b30, 0x5b7b40, 0x5b7b50, 0x5b7b60, 0x5b7b70, 0x5b7be0, 0x5b7bf0, 0x5b7c00, 0x5b7c10, 0x5b7c20, 0x5b7c30, 0x5b7c50, 0x5b7c60, 0x5b7ca0, 0x5b7cb0, 0x5b7cd0, 0x5b7ce0, 0x5b7d00, 0x5b7d10, 0x5b7d30, 0x5b7d40, 0x5b7d60, 0x5b7d70, 0x5b7d90, 0x5b7da0, 0x5b7dc0, 0x5b7dd0, 0x5b7df0, 0x5b7e00, 0x5b7e20, 0x5b7e30, 0x5b7e50, 0x5b7e60, 0x5b7e80, 0x5b7e90, 0x5b7eb0, 0x5b7ec0, 0x5b7ee0, 0x5b7ef0, 0x5b7f10, 0x5b7f20, 0x5b7f30, 0x5b7f40, 0x5b7f60, 0x5b7f70, 0x5b7f90, 0x5b7fa0, 0x5b7fc0, 0x5b7fd0, 0x5b7ff0, 0x5b8000, 0x5b87a0, 0x5b87b0, 0x5b8890, 0x5b88a0, 0x5bc970, 0x5bc980, 0x5bc990, 0x5bc9a0, 0x5bd480, 0x5bd490, 0x5bd4a0, 0x5bd4b0, 0x5bd580, 0x5bd590, 0x5bd5a0, 0x5bd5b0, 0x5be1a0, 0x5be1b0, 0x5be1c0, 0x5be1d0, 0x5be1f0, 0x5be200, 0x5be210, 0x5be220, 0x5be230, 0x5be240, 0x5d3b20, 0x5d3b30, 0x536f60, 0x538170, 0x5aa260, 0x5aca00, 0x5b0380, 0x5b1140, 0x5b16d0, 0x5b1790, 0x5b35d0, 0x5b4940, 0x5b7c90, 0x5bc9d0, 0x5bd5e0, 0x5aa2b0 Confidence: verified Proof: one Test: net::initializer_constants, net::initializer_formulas, net::initializer_counters, net::exit_flag

The census takes every dword of the table from 0x827000 that points into the three runs, 276 of them, each an instruction that is a five-byte jmp (256) or call (20) to the body. A typical pair is 0x5372c0, jmp 0x5372d0, and 0x5372d0, fld [0x80906c]; fmul [0x80906c]; fstp [0xc0d430]; ret. For each store a scan of the image for the global's address as a dword, outside the initializers themselves, finds a reader for 19 of the 319 globals and none for the rest. A call thunk jumps on after its body: 0x537320 calls 0x537330 and jumps to 0x537360, which registers 0x537370 with the C runtime's exit list (0x409aef).

The tests run whole the 240 bodies that compute, the 13 exit functions and 0x5aa2b0: the constants in table order on the image's own values, with no other byte of .data changed; the float bodies over both zeros, NaN, the infinities, the extremes, subnormals and a fuzz, every pair for a quotient; the counts from 0, 1, 2, the sign boundary and the wrap; the flag from all 256 values.

Starts the listing hides

Four function starts lie where the disassembly listing, decoding linearly through a jump table, is out of step: 0x5aa920, 0x5aae20, 0x5b1e70 and 0x5b24b0. Each is a call target, and a disassembly that starts at the address decodes a normal prologue there. The listing has no instruction at these four addresses.

Addresses: 0x5aa920, 0x5aae20, 0x5b1e70, 0x5b24b0, 0x5aa854, 0x5aae08, 0x5b1e2c, 0x5b2444 Confidence: verified Proof: one Test: none

The jump tables 0x5aa854 (and its second table 0x5aa880), 0x5aae08, 0x5b1e2c and 0x5b2444 (with its byte table 0x5b2450) end just before each start; the listing decodes the table bytes as instructions and joins the next instruction at 0x5aa921, 0x5aae23, 0x5b1e71 and 0x5b24b3. 0x5aa920 has 16 call sites, among them 0x5aaa97; 0x5aae20 is called from 0x5aadf7. Decoding from each address gives push ebp and a body ending in ret.

Shared helpers

Two functions of the second run serve the whole client. 0x5b71c0 is a lone ret that the static initializers of 124 sites across the client reach when their counter first becomes 1, and 0x5b71d0, also a ret, is its exit twin. 0x5b7bb0 eases between two floats along half a cosine, a + (b − a)·(1 − cos(π·t))/2; it has 11 call sites outside net.

Addresses: 0x5b71c0, 0x5b71d0, 0x5b7bb0, 0x538140 Confidence: verified Proof: one Test: cmath::cmath_cosine_smoothstep

0x538140 is one such initializer: inc of 0xc2a3c4, cmp eax,1, and jmp 0x5b71c0 on equality. A scan for call and jmp to 0x5b71c0 finds 124. 0x5b7bb0 loads π, multiplies by t, takes fcos, subtracts it from 1 (fsubr, d8 2d) and halves the result, then multiplies by b − a (fsub, d8 65) and adds a; the arguments are a, b, t, ret 0xc.

cmath::cmath_cosine_smoothstep runs 0x5b7bb0 whole.

Unreached functions

Nothing live reaches these 81 functions. Most are ServerLink, the logon server's side of Grunt.cpp, with the AddressList it alone uses; the others are listening sockets, a delayed send path, WDataStore growth and pool code, test and helper code in the crypto run, and spare ClientServices entries. Their rows keep a one-line meaning; those without a recorded derivation are inferred.

Addresses: 0x538050, 0x5ab1c0, 0x5ab5c0, 0x5ab6d0, 0x5ab870, 0x5abdb0, 0x5abe00, 0x5abe10, 0x5b3030, 0x5b4e00, 0x5b5af0, 0x5b6d90, 0x5b6eb0, 0x5b6ec0, 0x5b6fa0, 0x5b6ff0, 0x5b71a0, 0x5b71b0, 0x5b7320, 0x5b7360, 0x5b7390, 0x5b73a0, 0x5b73b0, 0x5b7410, 0x5b7960, 0x5b7a40, 0x5b7a70, 0x5b7ac0, 0x5b7b90, 0x5b82a0, 0x5b8450, 0x5b84e0, 0x5b8980, 0x5b8ab0, 0x5b8ac0, 0x5b8af0, 0x5b96e0, 0x5b99a0, 0x5b9a10, 0x5b9a60, 0x5b9b50, 0x5b9ca0, 0x5b9d10, 0x5b9d40, 0x5b9d90, 0x5b9df0, 0x5b9e50, 0x5b9e70, 0x5b9fb0, 0x5ba1a0, 0x5ba2e0, 0x5ba3f0, 0x5ba500, 0x5ba620, 0x5ba770, 0x5bdcb0, 0x5bde90, 0x5be040, 0x5be130, 0x5be260, 0x5be2a0, 0x5be300, 0x5be360, 0x5be5c0, 0x5be6a0, 0x5be6e0, 0x5be7d0, 0x5be800, 0x5be840, 0x5d1be0, 0x5d1c10, 0x5d1c50, 0x5d3440, 0x5d3c40, 0x5d3ce0, 0x5d3d40, 0x5d3d80, 0x5d3de0, 0x5d3e70, 0x5d3ec0, 0x5d3f00 Confidence: verified Proof: one Test: none

The census is two scans over the whole image: every e8 or e9 byte whose target is the function, and every occurrence of its address as a dword in any section. For these 81 the first finds only sites inside other functions of this list, and the second finds the ServerLink vtables 0x80a778, 0x80a77c and 0x80a780, and two dwords for 0x5be800 that straddle instructions of other code (00 e8 5b 00), not operands. Those are stored only by 0x5b8980, the ServerLink constructor, and 0x5b8af0, its destructor (0x5b8a5b to 0x5b8a68, 0x5b8afa to 0x5b8b07), both in the list and neither referenced. The control is NetClient::SetMessageHandler (0x537a60), for which the first scan finds its 14 call sites, and 0x5b3ea0, for which the second finds its 10 stored copies. 0x5b6fa0, 0x5b71b0, 0x5ba3f0, 0x5d3440 and 0x5d3f00 follow a ret with no padding and are reached by no branch of the function above.