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

Disassembly:
push 0xffffffffffffffff
push 0x5e128e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
mov esi, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0x3c], esi
call eax
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
jne 0x40f513
xor al, al
jmp 0x40f7ae
mov edi, 7
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x9c], ebx
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x58]
push eax
push ebp
call edx
test al, al
jne 0x40f568
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x70], 8
jb 0x40f55f
mov eax, dword [esp + 0x5c]
push eax
call fcn.0059b877
add esp, 4
mov dword [esp + 0x70], edi
jmp 0x40f78e
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push ebp
lea eax, [esp + 0x78]
push eax
call edx
mov byte [esp + 0x9c], 1
push 1
push 0x60add8
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00402770
mov byte [esp + 0x9c], 2
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x40f5b8
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x78]
call fcn.00402d90
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x9c], 1
cmp dword [esp + 0x34], esi
jb 0x40f5ef
mov eax, dword [esp + 0x20]
push eax
call fcn.0059b877
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40f5fe
mov ecx, dword [esp + 0x18]
jmp 0x40f729
push 1
push 0x60af9c
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00402770
mov byte [esp + 0x9c], 3
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x40f63a
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x78]
call fcn.00402d90
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x9c], 1
cmp dword [esp + 0x34], esi
jb 0x40f671
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0059b877
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40f698
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40f685
lea eax, [esp + 0x5c]
xor ebx, ebx
call fcn.0042b0a0
mov edx, dword [esp + 0x18]
mov dword [edx + 0x1c], eax
jmp 0x40f735
push 1
push 0x605854
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00402770
mov byte [esp + 0x9c], 4
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x40f6d4
lea eax, [esp + 0x40]
mov edi, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x78]
call fcn.00402d90
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x9c], 1
cmp dword [esp + 0x54], esi
jb 0x40f70b
mov eax, dword [esp + 0x40]
push eax
call fcn.0059b877
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
je 0x40f735
mov ecx, dword [esp + 0x18]
add ecx, 0x20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
call fcn.00402580
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x40f750
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0059b877
add esp, 4
mov esi, 7
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x70], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x40f786
mov edx, dword [esp + 0x5c]
push edx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push ebp
mov word [esp + 0x60], bx
mov dword [esp + 0x70], ebx
call edx
mov ebp, eax
cmp ebp, ebx
jne 0x40f513
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x8c
ret 4