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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae769
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a0290]
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 + 0x1dc0]
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 + 0x2194]
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 + 0x21fe]
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 + 0x16240]
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 + 0x16264]
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 0x410f60
push 0x410710
push 2
push 0xc
lea eax, [esi + 0x16288]
mov byte [ebp - 4], 0x10
push eax
call fcn.0058edc0
push 0x410f60
push 0x410710
push 2
push 0xc
lea eax, [esi + 0x162a0]
mov byte [ebp - 4], 0x11
push eax
call fcn.0058edc0
push 0x410f60
push 0x410710
push 2
push 0xc
lea eax, [esi + 0x162b8]
mov byte [ebp - 4], 0x12
push eax
call fcn.0058edc0
mov dword [esi + 0x162e4], 0
mov dword [esi + 0x162dc], 0
mov dword [esi + 0x162e0], 0
push 0x410f60
push 0x410710
push 1
push 0xc
lea eax, [esi + 0x162e8]
mov byte [ebp - 4], 0x14
push eax
call fcn.0058edc0
lea ecx, [esi + 0x162f4]
call fcn.004105e0
lea ebx, [esi + 0x1641c]
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 + 0x16440]
mov byte [ebp - 4], 0x16
call fcn.005896b0
push 0xa
lea ecx, [esi + 0x1645c]
mov byte [ebp - 4], 0x17
call fcn.005896b0
lea edi, [esi + 0x1647c]
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, 0x164a0
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 + 0x21fe]
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.004da350
mov ecx, dword [ebp - 0x10]
push 0x32
lea ecx, [ecx + 0x1dc0]
call fcn.004da350
mov eax, dword [ebp - 0x10]
mov ecx, ebx
push 4
mov dword [eax + 0x1e30], 0
call fcn.004da350
push 0x19
mov ecx, edi
call fcn.004da350
mov ebx, dword [ebp - 0x10]
mov ecx, esi
push 0xa
mov dword [ebx + 0x16478], 0
call fcn.004da350
push 0x32
lea ecx, [ebx + 0x16240]
call fcn.004da350
push 0x1e
lea ecx, [ebx + 0x16264]
call fcn.004da350
push 0x190
call fcn.0058d63c
mov esi, eax
add esp, 4
test esi, esi
je 0x41050f
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 0x410511
xor esi, esi
push 0x80
lea eax, [esi + 0x10]
mov dword [ebx + 0x20], esi
push str.LevPenalty
push eax
call fcn.0058eef0
lea edi, [esi + 4]
mov dword [esi + 0xc], 0xa
add esp, 0xc
cmp dword [edi], 0
jne 0x410549
push 0x63
push edi
call fcn.00411130
mov eax, dword [edi]
add esp, 8
mov dword [esi + 8], eax
push 0x63
lea ecx, [ebx + 0x24]
call fcn.004da350
push 4
lea ecx, [ebx + 0x2194]
call fcn.004da350
push 0x64
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x1c], 0
call fcn.004da350
push 0x64
lea ecx, [ebx + 0x6c]
call fcn.004da350
push 0x80
lea ecx, [ebx + 0x104]
call fcn.004da350
push 0x64
lea ecx, [ebx + 0xbc]
call fcn.004da350
push 0x64
lea ecx, [ebx + 0xe0]
call fcn.004da350
push 0xc8
lea ecx, [ebx + 0x168]
call fcn.004da350
mov ecx, ebx
call fcn.00417b60
mov ecx, ebx
call fcn.004124c0
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