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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af1e9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a12a0]
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 + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
lea eax, [esi + 0x168]
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 + 0x2678]
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 + 0x2a4c]
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 + 0x2ab6]
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 + 0x16af8]
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 + 0x16b1c]
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 0x410fa0
push 0x410750
push 2
push 0xc
lea eax, [esi + 0x16b40]
mov byte [ebp - 4], 0x10
push eax
call fcn.0058f8e0
push 0x410fa0
push 0x410750
push 2
push 0xc
lea eax, [esi + 0x16b58]
mov byte [ebp - 4], 0x11
push eax
call fcn.0058f8e0
push 0x410fa0
push 0x410750
push 2
push 0xc
lea eax, [esi + 0x16b70]
mov byte [ebp - 4], 0x12
push eax
call fcn.0058f8e0
mov dword [esi + 0x16b9c], 0
mov dword [esi + 0x16b94], 0
mov dword [esi + 0x16b98], 0
push 0x410fa0
push 0x410750
push 1
push 0xc
lea eax, [esi + 0x16ba0]
mov byte [ebp - 4], 0x14
push eax
call fcn.0058f8e0
lea ecx, [esi + 0x16bac]
call fcn.00410610
lea ebx, [esi + 0x16cd4]
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
push 0xa
lea ecx, [esi + 0x16cf8]
mov byte [ebp - 4], 0x16
call fcn.0058a1d0
push 0xa
lea ecx, [esi + 0x16d14]
mov byte [ebp - 4], 0x17
call fcn.0058a1d0
lea edi, [esi + 0x16d34]
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
add esi, 0x16d58
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 0x64
mov byte [ebp - 4], 0x1a
mov dword [eax + 0x18c], ecx
lea ecx, [eax + 0x2ab6]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
call fcn.00497360
mov ecx, dword [ebp - 0x10]
push 0x32
lea ecx, [ecx + 0x2678]
call fcn.00497360
mov eax, dword [ebp - 0x10]
mov ecx, ebx
push 4
mov dword [eax + 0x26e8], 0
call fcn.00497360
push 0x19
mov ecx, edi
call fcn.00497360
mov ebx, dword [ebp - 0x10]
mov ecx, esi
push 0xa
mov dword [ebx + 0x16d30], 0
call fcn.00497360
push 0x32
lea ecx, [ebx + 0x16af8]
call fcn.00497360
push 0x1e
lea ecx, [ebx + 0x16b1c]
call fcn.00497360
push 0x190
call fcn.0058e15c
mov esi, eax
add esp, 4
test esi, esi
je 0x41053f
mov dword [esi], vtable.CMemoryPoolTempl_struct_LEV_PENALTY_.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0x10], 0
jmp 0x410541
xor esi, esi
push 0x80
lea eax, [esi + 0x10]
mov dword [ebx + 0x20], esi
push str.LevPenalty
push eax
call fcn.0058fa10
lea edi, [esi + 4]
mov dword [esi + 0xc], 0xa
add esp, 0xc
cmp dword [edi], 0
jne 0x410579
push 0x63
push edi
call fcn.00411170
mov eax, dword [edi]
add esp, 8
mov dword [esi + 8], eax
push 0x63
lea ecx, [ebx + 0x24]
call fcn.00497360
push 4
lea ecx, [ebx + 0x2a4c]
call fcn.00497360
push 0x64
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x1c], 0
call fcn.00497360
push 0x64
lea ecx, [ebx + 0x6c]
call fcn.00497360
push 0x80
lea ecx, [ebx + 0x104]
call fcn.00497360
push 0x64
lea ecx, [ebx + 0xbc]
call fcn.00497360
push 0x64
lea ecx, [ebx + 0xe0]
call fcn.00497360
push 0xc8
lea ecx, [ebx + 0x168]
call fcn.00497360
mov ecx, ebx
call fcn.00417bb0
mov ecx, ebx
call fcn.00412510
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret