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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40abb7
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x40f090]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x40f090]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, 7
xor edx, edx
mov byte [esp + 0x17], al
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], eax
mov word [esp + 0x74], dx
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov word [esp + 0x58], ax
push edi
mov ebx, str..
lea esi, [esp + 0x20]
mov byte [esp + 0x2f4], 1
call fcn.004027a0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 2
call fcn.00402400
mov esi, 8
mov byte [esp + 0x2f0], 1
cmp dword [esp + 0x34], esi
jb 0x401126
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040341d
add esp, 4
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x401134
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [0x40b040]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x401398
cmp word [esp + 0xb8], 0x2e
je 0x4012a8
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x70]
call fcn.00402290
push edi
mov ebx, 0x40cad4
lea esi, [esp + 0x3c]
call fcn.004027a0
push eax
lea ebx, [esp + 0xc0]
lea esi, [esp + 0x24]
mov byte [esp + 0x2f8], 3
call fcn.004027a0
add esp, 8
push 0xffffffffffffffff
xor esi, esi
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f8], 4
call fcn.00402400
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x4011c6
mov eax, dword [esp + 0x20]
push eax
call fcn.0040341d
add esp, 4
xor ecx, ecx
mov byte [esp + 0x2f0], 1
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], ebx
jb 0x4011f4
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040341d
add esp, 4
test byte [esp + 0x8c], 0x10
je 0x40126b
mov eax, dword [ebp + 0xc]
test al, al
je 0x401264
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00401060
mov esi, eax
add esp, 8
test esi, esi
je 0x4012a8
cmp dword [esp + 0x6c], ebx
jb 0x401230
mov edx, dword [esp + 0x58]
push edx
call fcn.0040341d
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x88], ebx
jb 0x40125d
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0040341d
add esp, 4
mov eax, esi
jmp 0x4013da
mov byte [esp + 0x17], 1
jmp 0x4012a8
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebx
jae 0x40127c
lea eax, [esp + 0x74]
push 0x80
push eax
call dword [0x40b020]
test eax, eax
je 0x4012f1
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebx
jae 0x40129d
lea eax, [esp + 0x74]
push eax
call dword [0x40b024]
test eax, eax
je 0x4012f1
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [0x40b028]
cmp eax, 1
je 0x401150
push esi
call dword [0x40b030]
call dword [0x40b034]
mov ebx, eax
cmp ebx, 0x12
je 0x40133c
lea esi, [esp + 0x54]
call fcn.00402260
lea esi, [esp + 0x70]
call fcn.00402260
mov eax, ebx
jmp 0x4013da
call dword [0x40b034]
mov edi, eax
cmp dword [esp + 0x6c], ebx
jb 0x40130c
mov edx, dword [esp + 0x58]
push edx
call fcn.0040341d
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
mov word [esp + 0x58], ax
cmp dword [esp + 0x88], ebx
jb 0x401335
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0040341d
add esp, 4
mov eax, edi
jmp 0x4013da
cmp byte [esp + 0x17], 0
jne 0x401393
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x401350
mov eax, dword [esi]
jmp 0x401352
mov eax, esi
push 0x80
push eax
call dword [0x40b020]
test eax, eax
jne 0x401380
call dword [0x40b034]
lea esi, [esp + 0x54]
mov edi, eax
call fcn.00402260
lea esi, [esp + 0x70]
call fcn.00402260
mov eax, edi
jmp 0x4013da
cmp dword [edi + 0x18], 8
jb 0x401388
mov esi, dword [esi]
push esi
call dword [0x40b02c]
test eax, eax
je 0x401362
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x4013ab
mov edx, dword [esp + 0x58]
push edx
call fcn.0040341d
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x88], esi
jb 0x4013d8
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0040341d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0040322e
mov esp, ebp
pop ebp
ret