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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d937
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0xa37210]
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 + 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
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
lea eax, [esi + 0x170]
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 + 0x1dd0]
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 + 0x2004]
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 + 0x206e]
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 + 0x146b0]
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 + 0x146d4]
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 0x4146e0
push 0x413dd0
push 2
push 0xc
lea eax, [esi + 0x146f8]
mov byte [ebp - 4], 0x10
push eax
call fcn.0057c900
push 0x4146e0
push 0x413dd0
push 2
push 0xc
lea eax, [esi + 0x14710]
mov byte [ebp - 4], 0x11
push eax
call fcn.0057c900
push 0x4146e0
push 0x413dd0
push 2
push 0xc
lea eax, [esi + 0x14728]
mov byte [ebp - 4], 0x12
push eax
call fcn.0057c900
mov dword [esi + 0x14754], 0
mov dword [esi + 0x1474c], 0
mov dword [esi + 0x14750], 0
push 0x4146e0
push 0x413dd0
push 1
push 0xc
lea eax, [esi + 0x14758]
mov byte [ebp - 4], 0x14
push eax
call fcn.0057c900
lea ecx, [esi + 0x14764]
call fcn.00413c90
lea eax, [esi + 0x1488c]
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 + 0x148b0]
mov byte [ebp - 4], 0x16
call fcn.004010c0
push 0xa
lea ecx, [esi + 0x148cc]
mov byte [ebp - 4], 0x17
call fcn.004010c0
lea ebx, [esi + 0x148ec]
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 edi, [esi + 0x14910]
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, 0x14934
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], 0x1b
mov dword [eax + 0x194], ecx
lea ecx, [eax + 0x206e]
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.00422350
mov ecx, dword [ebp - 0x10]
push 0x32
lea ecx, [ecx + 0x1dd0]
call fcn.00422350
mov eax, dword [ebp - 0x10]
mov ecx, esi
push 0xa
mov dword [eax + 0x1e40], 0
mov dword [eax + 0x18078], 0
call fcn.00422350
mov ecx, dword [ebp - 0x10]
push 4
lea ecx, [ecx + 0x1488c]
call fcn.00422350
push 0x19
mov ecx, ebx
call fcn.00422350
mov ebx, dword [ebp - 0x10]
mov ecx, edi
push 0xa
mov dword [ebx + 0x148e8], 0
call fcn.00422350
push 0x32
lea ecx, [ebx + 0x146b0]
call fcn.00422350
push 0x1e
lea ecx, [ebx + 0x146d4]
call fcn.00422350
push 0x190
call fcn.0057b17d
mov esi, eax
add esp, 4
test esi, esi
je 0x413bb8
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 0x413bba
xor esi, esi
push 0x80
lea eax, [esi + 0x10]
mov dword [ebx + 0x20], esi
push str.LevPenalty
push eax
call fcn.0057ca30
lea edi, [esi + 4]
mov dword [esi + 0xc], 0xa
add esp, 0xc
cmp dword [edi], 0
jne 0x413bf2
push 0x63
push edi
call fcn.004148b0
mov eax, dword [edi]
add esp, 8
mov dword [esi + 8], eax
push 0x63
lea ecx, [ebx + 0x24]
call fcn.00422350
push 4
lea ecx, [ebx + 0x2004]
call fcn.00422350
push 0x64
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x1c], 0
call fcn.00422350
push 0x64
lea ecx, [ebx + 0x6c]
call fcn.00422350
push 0x80
lea ecx, [ebx + 0x104]
call fcn.00422350
push 0x64
lea ecx, [ebx + 0xbc]
call fcn.00422350
push 0x64
lea ecx, [ebx + 0xe0]
call fcn.00422350
push 0xc8
lea ecx, [ebx + 0x170]
call fcn.00422350
mov ecx, ebx
call fcn.0041ac50
mov ecx, ebx
call fcn.00415aa0
mov ecx, ebx
call fcn.0041ab90
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