Function at 0x402e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40456c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x408398]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408398]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
call fcn.00402520
mov dword [esp + 0x18], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
mov dword [eax], eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax + 8], eax
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0xc], ecx
mov dword [esp + 0x104], ecx
mov dword [esp + 0x28], ecx
jbe 0x40317a
mov dword [esp + 0x20], ecx
jmp 0x402ef8
xor ecx, ecx
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x20]
lea ebp, [edx + eax]
mov eax, dword [0x4050dc]
mov edx, dword [eax]
push edx
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebp
call dword [0x4050e0]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x28]
mov ebx, dword [eax + ecx*4]
push 0x7c
push ebx
call dword [0x405150]
mov esi, eax
add esp, 8
test esi, esi
je 0x403158
lea edx, [esi + 1]
push 0x7c
push edx
call dword [0x405150]
add esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x403158
sub eax, esi
add eax, 1
push eax
push esi
lea ecx, [esp + 0xe4]
call dword [0x4050e4]
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10c], 1
call fcn.004028f0
mov esi, dword [eax]
test esi, esi
mov edi, dword [eax + 4]
mov ebp, dword [esp + 0x18]
je 0x402f99
lea edx, [esp + 0x14]
cmp esi, edx
je 0x402f9f
call dword [0x40513c]
cmp edi, ebp
jne 0x4030ed
lea ecx, [esp + 0xc0]
call dword [0x4050fc]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov byte [esp + 0x10c], 2
call fcn.004038a0
add esp, 8
test al, al
je 0x4030d8
mov ecx, dword [esp + 0xd4]
test ecx, ecx
jbe 0x403033
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x402ffb
call dword [0x40513c]
mov ecx, dword [esp + 0xd4]
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x403013
lea eax, [esp + 0xc4]
cmp byte [eax + esi], 0x5c
jne 0x403033
mov edx, dword [0x4050dc]
mov eax, dword [edx]
add ecx, 0xffffffff
push eax
push ecx
lea ecx, [esp + 0xc8]
call dword [0x4050e0]
sub esp, 0x1c
lea edx, [esp + 0xdc]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call dword [0x4050ec]
sub esp, 0x1c
lea eax, [esp + 0x114]
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
mov byte [esp + 0x140], 3
call dword [0x4050ec]
lea ecx, [esp + 0xc0]
push ecx
mov byte [esp + 0x140], 2
call fcn.00402340
add esp, 0x3c
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 4
call fcn.00401d10
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10c], 5
call fcn.004027f0
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x50]
mov byte [esp + 0x104], 4
call fcn.00401cb0
lea ecx, [esp + 0x88]
mov byte [esp + 0x104], 2
call fcn.00401cb0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x104], 1
call dword [0x4050f0]
test esi, esi
mov ebp, dword [esp + 0x18]
je 0x4030fd
lea ecx, [esp + 0x14]
cmp esi, ecx
je 0x403103
call dword [0x40513c]
cmp edi, ebp
jne 0x403111
mov edx, dword [esp + 0x24]
mov byte [edx + 0x1c], 1
jmp 0x40313b
test esi, esi
jne 0x40311b
call dword [0x40513c]
cmp edi, dword [esi + 4]
jne 0x403126
call dword [0x40513c]
mov ecx, dword [esp + 0x24]
add edi, 0x28
push edi
call dword [0x4050e8]
mov ebx, dword [esp + 0x2c]
add ebx, 1
lea ecx, [esp + 0xdc]
mov byte [esp + 0x104], 0
call dword [0x4050f0]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
push ebx
mov ecx, ebp
call dword [0x4050d4]
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 0x44
add eax, 1
cmp eax, dword [edi + 0xc]
mov dword [esp + 0x28], eax
jb 0x402ef6
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x118], 0xffffffff
call fcn.00402d60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00403954
add esp, 4
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.004038fc
add esp, 0xf4
ret