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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x41d084]
xor eax, ebp
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
je 0x40f8af
cmp dword [ebp + 0xc], 0
jne 0x40f8b6
xor eax, eax
jmp 0x40fafa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
and eax, 0xffff0000
jne 0x40f99a
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 8]
jb 0x40f979
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x14]
cmp dword [ebp - 0xb4], eax
jb 0x40f980
xor eax, eax
jmp 0x40fafa
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x14], eax
jmp 0x40fa03
mov dword [ebp - 0xbc], 0
jmp 0x40f9b5
mov ecx, dword [ebp - 0xbc]
add ecx, 1
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
cmp edx, dword [ebp - 0x10]
je 0x40fa03
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call fcn.00410440
add esp, 8
test eax, eax
jne 0x40fa01
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
jmp 0x40fa03
jmp 0x40f9a6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xac]
cmp dword [ebp - 0x14], eax
jb 0x40fa25
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0x14], ecx
jb 0x40fa2d
mov eax, dword [ebp - 0x14]
jmp 0x40fafa
push 0x2e
mov edx, dword [ebp - 0x14]
push edx
call fcn.00410410
add esp, 8
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x40fa52
mov eax, dword [ebp - 0x14]
jmp 0x40fafa
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov word [ebp + ecx*2 - 0x96], 0x64
mov edx, dword [ebp - 0xc]
mov word [ebp + edx*2 - 0x94], 0x6c
mov eax, dword [ebp - 0xc]
mov word [ebp + eax*2 - 0x92], 0x6c
mov ecx, dword [ebp - 0xc]
mov word [ebp + ecx*2 - 0x90], 0
jmp 0x40fa9d
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jl 0x40faba
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
movsx cx, byte [eax]
mov edx, dword [ebp - 0xc]
mov word [ebp + edx*2 - 0x98], cx
jmp 0x40fa94
lea eax, [ebp - 0x98]
push eax
call fcn.0040f7b0
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x40fae4
lea ecx, [ebp - 0x98]
push ecx
call fcn.0040f830
add esp, 4
mov dword [ebp + 8], eax
mov edx, dword [ebp - 0x9c]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f890
add esp, 8
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040905b
mov esp, ebp
pop ebp
ret