Function at 0x405f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a6e2
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x484], eax
push esi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
xor esi, esi
push esi
push 1
push esi
push esi
push 5
lea ecx, [esp + 0x70]
call fcn.004083b0
push 0x208
lea eax, [esp + 0x286]
push esi
push eax
mov dword [esp + 0x4a4], esi
mov word [esp + 0x28c], si
call fcn.0040b3b0
push 0x208
lea ecx, [esp + 0x86]
push esi
push ecx
mov word [esp + 0x8c], si
call fcn.0040b3b0
add esp, 0x18
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
lea edx, [esp + 0x1c]
push edx
push 0x105
lea eax, [esp + 0x7c]
push eax
push 0x105
lea ecx, [esp + 0x290]
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x4ac], 5
call fcn.00409000
lea edx, [esp + 0x74]
push edx
call fcn.004019f0
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x105
lea ecx, [esp + 0x7c]
push ecx
push 0x105
lea edx, [esp + 0x290]
push edx
lea ecx, [esp + 0x70]
call fcn.00409210
lea eax, [esp + 0x74]
push eax
call fcn.004019f0
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x54]
push eax
push 0x105
lea ecx, [esp + 0x84]
push ecx
push 0x105
lea edx, [esp + 0x298]
push edx
lea ecx, [esp + 0x78]
call fcn.00409420
lea eax, [esp + 0x74]
push eax
call fcn.004019f0
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x40610b
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x40]
push edx
push ecx
push eax
call fcn.004059e0
mov edx, dword [esp + 0x50]
push edx
call fcn.0040ad0b
add esp, 0x14
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x406141
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.004059e0
mov edx, dword [esp + 0x40]
push edx
call fcn.0040ad0b
add esp, 0x14
mov eax, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x406177
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.004059e0
mov edx, dword [esp + 0x60]
push edx
call fcn.0040ad0b
add esp, 0x14
mov eax, dword [esp + 0x10]
cmp eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
je 0x4061ad
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.004059e0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040ad0b
add esp, 0x14
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
je 0x4061e3
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push ecx
push eax
call fcn.004059e0
mov edx, dword [esp + 0x30]
push edx
call fcn.0040ad0b
add esp, 0x14
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x498], 0xffffffff
call fcn.004083e0
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.0040b399
add esp, 0x494
ret