Function at 0x516130
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f2b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a73f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CGameResourceManager.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
lea eax, [esi + 0xbc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0xe0]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x104]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x15a], 0
mov dword [esi + 0x15e], 0
mov dword [esi + 0x162], 0
mov dword [esi + 0x166], 0
mov dword [esi + 0x16a], 0
mov dword [esi + 0x16e], 0
mov dword [esi + 0x172], 0
mov dword [esi + 0x176], 0
mov dword [esi + 0x17a], 0
mov dword [esi + 0x17e], 0
mov dword [esi + 0x182], 0
mov dword [esi + 0x186], 0
lea edi, [esi + 0x3a2a]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea eax, [esi + 0x3f52]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea ebx, [esi + 0x3fbc]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea eax, [esi + 0x1925f]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x19283]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
push 0x517220
push 0x516900
push 2
push 0xc
lea eax, [esi + 0x192a7]
mov byte [ebp - 4], 0x10
push eax
call fcn.005763f4
push 0x517220
push 0x516900
push 2
push 0xc
lea eax, [esi + 0x192bf]
mov byte [ebp - 4], 0x11
push eax
call fcn.005763f4
push 0x517220
push 0x516900
push 2
push 0xc
lea eax, [esi + 0x192d7]
mov byte [ebp - 4], 0x12
push eax
call fcn.005763f4
mov dword [esi + 0x19303], 0
mov dword [esi + 0x192fb], 0
mov dword [esi + 0x192ff], 0
push 0x517220
push 0x516900
push 1
push 0xc
lea eax, [esi + 0x19307]
mov byte [ebp - 4], 0x14
push eax
call fcn.005763f4
lea ecx, [esi + 0x19313]
call fcn.00516840
lea eax, [esi + 0x1945e]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
push 0xa
lea ecx, [esi + 0x19482]
mov byte [ebp - 4], 0x16
call fcn.00573fa0
push 0xa
lea ecx, [esi + 0x1949e]
mov byte [ebp - 4], 0x17
call fcn.00573fa0
lea eax, [esi + 0x194be]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x194e2]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x19506]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x1952a]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x1954e]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 0x1d
lea eax, [esi + 0x19572]
mov edx, 0x1d
mov edi, 1
mov ebx, 0x190
jmp 0x516650
dec edx
mov word [eax + 0x82], di
movq xmm0, qword [str.127.0.0.1]
lea eax, [eax + 0x88]
movq qword [eax - 0x88], xmm0
mov cx, word [0x5929a0]
mov word [eax - 0x80], cx
mov word [eax - 0x48], bx
mov ecx, dword [str.Test]
mov dword [eax - 0x46], ecx
mov cl, byte [0x5929a8]
mov byte [eax - 0x42], cl
mov dword [eax - 4], edi
jns 0x516650
mov ecx, esi
call fcn.005199b0
xor eax, eax
mov dword [esi + 8], 0
push 0x64
lea ecx, [esi + 0x3fbc]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1ce], eax
call fcn.0049a3f0
push 0x32
lea ecx, [esi + 0x3a2a]
call fcn.0049a3f0
push 0xa
lea ecx, [esi + 0x1954e]
mov dword [esi + 0x3a9a], 0
mov byte [esi + 0x1a566], 0
call fcn.0049a3f0
push 4
lea ecx, [esi + 0x1945e]
call fcn.0049a3f0
push 0x19
lea ecx, [esi + 0x194be]
call fcn.0049a3f0
push 0x19
lea ecx, [esi + 0x19506]
call fcn.0049a3f0
push 0xa
lea ecx, [esi + 0x194e2]
mov dword [esi + 0x194ba], 0
call fcn.0049a3f0
push 0x96
lea ecx, [esi + 0x1952a]
call fcn.0049a3f0
push 0x32
lea ecx, [esi + 0x1925f]
call fcn.0049a3f0
push 0x1e
lea ecx, [esi + 0x19283]
call fcn.0049a3f0
push 0x190
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x516793
mov dword [edi], vtable.CMemoryPoolTempl_struct_LEV_PENALTY_.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [edi + 0x10], 0
jmp 0x516795
xor edi, edi
push 0x80
lea eax, [edi + 0x10]
mov dword [esi + 0x20], edi
push str.LevPenalty
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
lea ebx, [edi + 4]
mov dword [edi + 0xc], 0xa
add esp, 0xc
cmp dword [ebx], 0
jne 0x5167ce
push 0x63
push ebx
call fcn.00517370
mov eax, dword [ebx]
add esp, 8
mov dword [edi + 8], eax
push 0x63
lea ecx, [esi + 0x24]
call fcn.0049a3f0
push 4
lea ecx, [esi + 0x3f52]
call fcn.0049a3f0
push 0x64
lea ecx, [esi + 0x48]
mov dword [esi + 0x1c], 0
call fcn.0049a3f0
push 0x64
lea ecx, [esi + 0x6c]
call fcn.0049a3f0
push 0x80
lea ecx, [esi + 0x104]
call fcn.0049a3f0
push 0x64
lea ecx, [esi + 0xbc]
call fcn.0049a3f0
push 0x64
lea ecx, [esi + 0xe0]
call fcn.0049a3f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret