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

Disassembly:
push 0xffffffffffffffff
push 0x4887b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], 1
mov dword [esp + 0x14], eax
jbe 0x40f9cb
call fcn.00459b57
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x40f9d8
call fcn.00459b57
push esi
push ebp
push edi
push ebp
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0040e9b0
mov edx, dword [esp + 0x60]
xor esi, esi
push esi
push 0x48fb7c
push edx
push esi
lea ecx, [esp + 0x5c]
xor ebx, ebx
call fcn.00408790
test eax, eax
jne 0x40fa5a
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x40fa1d
mov eax, dword [esp + 0x50]
push eax
call fcn.00418702
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], bl
jb 0x40fa43
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00418702
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edx, dword [esp + 0x7c]
push esi
push 0x48fb7c
push edx
push esi
lea ecx, [esp + 0x78]
call fcn.00408790
test eax, eax
jne 0x40fad6
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.0040f8d0
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x40fa97
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], bl
jb 0x40fabd
mov edx, dword [esp + 0x6c]
push edx
call fcn.00418702
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x40fae8
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.004035c0
mov edi, eax
cmp edi, 0xffffffff
jle 0x40fb6d
nop
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x58]
add ebx, 1
call fcn.0040b320
push eax
mov ecx, ebp
mov byte [esp + 0x48], 2
call fcn.0040f8d0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x44], 1
jb 0x40fb3d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x80], 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
lea esi, [edi + edx]
jae 0x40fb56
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.004035c0
mov edi, eax
cmp edi, 0xffffffff
jg 0x40fb00
mov eax, dword [esp + 0x60]
lea edx, [eax - 1]
cmp esi, edx
ja 0x40fbb4
sub eax, esi
push eax
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x58]
add ebx, 1
call fcn.0040b320
push eax
mov ecx, ebp
mov byte [esp + 0x48], 3
call fcn.0040f8d0
mov esi, 0x10
cmp dword [esp + 0x30], esi
jb 0x40fbb9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418702
add esp, 4
jmp 0x40fbb9
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x40fbcc
mov edx, dword [esp + 0x50]
push edx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x40fbf7
mov eax, dword [esp + 0x6c]
push eax
call fcn.00418702
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret