Function at 0x402c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x405f80
mov eax, dword fs:[0]
push eax
mov eax, 0x1354
mov dword fs:[0], esp
call fcn.00405d00
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1370]
push edi
mov dword [esp + 0x10], 0
call dword [0x4071cc]
cmp dword [esi + 0x4c], 0
je 0x402d37
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push 0x407a70
push 0x80000002
call dword [0x407008]
test eax, eax
je 0x402d40
push 0
lea ecx, [esp + 0x38]
push 0x407aac
push ecx
call dword [0x40722c]
mov esi, eax
push 0
lea edx, [esp + 0x38]
push str.Error
push edx
mov dword [esp + 0x1384], 0
call dword [0x40722c]
add esp, 0x18
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
push eax
mov byte [esp + 0x137c], 1
push 0
mov dword [ecx], 0x400
call dword [0x407428]
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x136c], 0
call dword [0x407230]
lea ecx, [esp + 0x34]
mov dword [esp + 0x136c], 0xffffffff
call dword [0x407230]
xor eax, eax
jmp 0x40303c
mov eax, 0xfe
push 0x200
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x64]
push 0
or edi, 0xffffffff
push eax
mov dword [esi + 0x50], edi
call fcn.00405c44
push pe_nt_image_headers32
lea ecx, [esp + 0x270]
push 0
push ecx
call fcn.00405c44
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x274]
push eax
push ecx
push edx
call dword [0x407014]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x402fe9
mov eax, dword [esp + 0x18]
cmp eax, 0xa
je 0x402dc7
cmp eax, 0xc
jne 0x402fe9
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x78]
push eax
call dword [0x40706c]
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x50]
cmp ecx, edi
jne 0x402dfd
call dword [0x407070]
inc dword [esp + 0x10]
jmp 0x40300d
mov eax, 0x12c
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x50]
mov ecx, 0x32
push edx
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], ecx
call dword [0x407060]
call fcn.00404080
test eax, eax
jne 0x402e53
call dword [0x407070]
mov ecx, dword [esi + 0x50]
inc dword [esp + 0x10]
push ecx
call dword [0x407090]
mov dword [esi + 0x50], edi
jmp 0x40300d
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x407048]
mov edx, dword [esi + 0x50]
push 0xf
push edx
call dword [0x407098]
push 0
call dword [0x4070f4]
push eax
call dword [0x4070f8]
add esp, 8
mov edi, 6
lea ebx, [esi + 0x38]
mov ecx, dword [esi + 0x50]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
push 0x407acc
push ecx
dec edi
call dword [0x407058]
call dword [0x4070fc]
cdq
mov ecx, 0x32
idiv ecx
add edx, 0xa
push edx
call dword [0x407064]
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x407048]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x402f54
mov ebp, 0x1000
cmp eax, 0x1000
ja 0x402eeb
mov ebp, eax
push 0x1001
lea edx, [esp + 0x364]
push 0
push edx
mov dword [esp + 0x20], ebp
call fcn.00405c44
add esp, 0xc
lea eax, [esi + 0x24]
push eax
mov eax, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x36c]
push edx
push eax
call dword [0x407068]
mov ebp, dword [0x407100]
lea ecx, [esp + 0x360]
push 0x407ad0
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x402f61
lea edx, [esp + 0x360]
push 0x407ad8
push edx
call ebp
add esp, 8
test eax, eax
jne 0x402f9c
test edi, edi
jne 0x402e8d
jmp 0x402fe9
push 0xffffffffffffffff
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
mov edi, 2
push ecx
mov dword [esi + 0xc0], edi
call dword [0x407264]
add esp, 0xc
mov ecx, dword [esp + 0x1374]
push eax
mov dword [esp + 0x1370], edi
call dword [0x40726c]
lea ecx, [esp + 0x24]
jmp 0x402fd8
push 0xffffffffffffffff
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esi + 0xc0], 1
call dword [0x407264]
add esp, 0xc
mov ecx, dword [esp + 0x1374]
push eax
mov dword [esp + 0x1370], 3
call dword [0x40726c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x136c], 0xffffffff
call dword [0x407230]
mov ecx, dword [esi + 0x50]
cmp ecx, 0xffffffff
je 0x402ffb
mov edx, dword [esi + 0x50]
push edx
call dword [0x407090]
inc dword [esp + 0x10]
cmp dword [esp + 0x20], 0
mov dword [esi + 0x50], 0xffffffff
jne 0x403020
mov eax, dword [esp + 0x1374]
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
je 0x402d40
mov edx, dword [esp + 0x1c]
push edx
call dword [0x407004]
mov eax, dword [esp + 0x1374]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
mov ecx, dword [esp + 0x1364]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1360
ret 4