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

Disassembly:
sub esp, 0x70
push ebx
push esi
push edi
mov esi, dword [esp + 0x88]
push 1
push esi
call fcn.00406dc0
add esp, 8
xor ecx, ecx
cmp eax, ecx
jg 0x4087da
pop edi
mov eax, 0xfffffffc
pop esi
pop ebx
add esp, 0x70
ret
lea edx, [esp + 0x1c]
push edx
call fcn.00405f97
lea ecx, [esp + 0x68]
push ecx
call fcn.00405f97
lea edx, [esp + 0x60]
push edx
call fcn.00405f97
lea ecx, [esp + 0x4c]
push ecx
call fcn.00405f97
lea edx, [esp + 0x5c]
push edx
call fcn.00405f97
lea ecx, [esp + 0x24]
push ecx
call fcn.00405f97
lea edx, [esp + 0x4c]
push edx
call fcn.00405f97
lea ecx, [esp + 0x44]
push ecx
call fcn.00405f97
lea edx, [esp + 0x90]
push edx
call fcn.00405f97
add esp, 0x24
push esi
push dword [esp + 0x88]
lea ecx, [esp + 0x54]
push ecx
call fcn.00408500
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea eax, [esp + 0x50]
push eax
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x408876
mov ebx, 0xfffffff2
jmp 0x408bdf
push esi
push dword [esp + 0x88]
lea edx, [esp + 0x24]
push edx
call fcn.00407a30
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00406160
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push esi
lea ecx, [esp + 0x14]
push ecx
call fcn.00406160
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push esi
lea edx, [esp + 0x38]
push edx
call fcn.00406160
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea ecx, [esp + 0x5c]
push ecx
call fcn.00406247
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 0
lea edx, [esp + 0x44]
push edx
call fcn.00406247
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 0
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406247
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea edx, [esp + 0x74]
push edx
call fcn.00406247
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
mov eax, dword [esp + 0x6c]
test byte [eax], 1
jne 0x4089ee
push 1
lea ecx, [esp + 0x68]
push ecx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
mov ebx, dword [esp + 0x60]
test byte [ebx], 1
jne 0x40897d
mov edi, dword [esp + 0x48]
test byte [edi], 1
je 0x4089b7
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x5c]
push ecx
push ecx
call fcn.00407092
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x44]
push ecx
push ecx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea edx, [esp + 0x5c]
push edx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea ecx, [esp + 0x44]
push ecx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
jmp 0x408945
mov eax, dword [esp + 0x3c]
test byte [eax], 1
jne 0x408a97
push 1
lea edx, [esp + 0x38]
push edx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
mov ebx, dword [esp + 0x30]
test byte [ebx], 1
jne 0x408a26
mov edi, dword [esp + 0x78]
test byte [edi], 1
je 0x408a60
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push edx
call fcn.00407092
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x74]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
push 1
lea edx, [esp + 0x74]
push edx
call fcn.00406c57
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408bdf
jmp 0x4089ee
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x68]
push ebx
call fcn.00406d05
add esp, 8
test eax, eax
js 0x408b06
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x5c]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x44]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
jmp 0x408b5d
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x38]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x2c]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x74]
push edx
push edx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
push 0
lea eax, [esp + 0x68]
push eax
call fcn.00406dc0
add esp, 8
test eax, eax
jne 0x408945
push 0
lea ebx, [esp + 0x2c]
push ebx
call fcn.00406dc0
add esp, 8
xor edi, edi
cmp eax, edi
jns 0x408ba0
push esi
lea edx, [esp + 0x2c]
push edx
push edx
call fcn.00407092
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
jmp 0x408b74
push esi
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406d05
add esp, 8
test eax, eax
js 0x408bc9
push esi
lea ecx, [esp + 0x2c]
push ecx
push ecx
call fcn.004070b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x408bdf
jmp 0x408ba0
lea edx, [esp + 0x28]
push edx
push dword [esp + 0x84]
call fcn.00406160
mov ebx, eax
add esp, 8
lea eax, [esp + 0x1c]
push eax
call fcn.00405fb0
lea esi, [esp + 0x68]
push esi
call fcn.00405fb0
lea edi, [esp + 0x60]
push edi
call fcn.00405fb0
lea ecx, [esp + 0x4c]
push ecx
call fcn.00405fb0
lea edx, [esp + 0x5c]
push edx
call fcn.00405fb0
lea eax, [esp + 0x24]
push eax
call fcn.00405fb0
lea esi, [esp + 0x4c]
push esi
call fcn.00405fb0
lea edi, [esp + 0x44]
push edi
call fcn.00405fb0
lea ecx, [esp + 0x90]
push ecx
call fcn.00405fb0
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x70
ret