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

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
jne 0x1008f5f5
xor eax, eax
pop esi
add esp, 0x54
ret 0x14
mov eax, dword [esi + 0x14]
push ebx
push ebp
push edi
sub eax, 0
je 0x1008f661
sub eax, 1
je 0x1008f654
sub eax, 1
jne 0x1008f943
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x70], ebp
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x54]
mov ebx, dword [esi + 0x50]
call dword [eax + 0xa4]
cmp byte [esp + 0x78], 0
lea ecx, [ebp - 1]
push dword [esp + 0x74]
mov edx, dword [eax]
je 0x1008f8df
test ebp, ebp
cmove ecx, ebp
push ecx
push edi
push ebx
push 0x10310cf4
mov ecx, eax
call dword [edx + 0x8c]
jmp 0x1008f8f4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x70], eax
jmp 0x1008f6ee
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], eax
mov dword [esp + 0x70], ebp
mov edi, dword [esi + 0x54]
test edi, edi
jne 0x1008f691
test ebp, ebp
je 0x1008f943
test edi, edi
je 0x1008f616
cmp dword [esi + 0x4c], 0
je 0x1008f616
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x3c]
call fcn.1008fe10
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x1008f6b2
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
dec edx
and edx, dword [ecx + 8]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
cmp eax, dword [esi + 0x34]
jne 0x1008f616
lea ecx, [esi + 0x3c]
call fcn.1008fea0
xor ecx, ecx
add edi, dword [esi + 0x20]
adc ecx, dword [esi + 0x24]
cmp ecx, dword [eax + 0xc]
jb 0x1008f616
ja 0x1008f6ee
cmp edi, dword [eax + 8]
jbe 0x1008f616
cmp byte [esp + 0x78], 0
lea ebp, [esi + 0x3c]
mov ecx, ebp
je 0x1008f75d
lea eax, [esp + 0x1c]
push eax
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f70e
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x1008f735
ja 0x1008f72d
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jbe 0x1008f735
mov ebx, dword [ebx + 8]
sub ebx, dword [esi + 0x20]
jmp 0x1008f737
xor ebx, ebx
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x50]
call dword [eax + 0xa4]
push dword [esp + 0x74]
mov ecx, eax
push 0
mov edx, dword [eax]
push ebx
push edi
push 0x10310cf4
call dword [edx + 0x8c]
jmp 0x1008f7be
lea eax, [esp + 0x28]
push eax
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f771
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x1008f798
ja 0x1008f790
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jbe 0x1008f798
mov ebx, dword [ebx + 8]
sub ebx, dword [esi + 0x20]
jmp 0x1008f79a
xor ebx, ebx
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x50]
call dword [eax + 0xa4]
push dword [esp + 0x74]
mov ecx, eax
push 0
mov edx, dword [eax]
push ebx
push edi
push 0x10310cf4
call dword [edx + 0x88]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x14], ecx
test eax, eax
jne 0x1008f94f
sub dword [esi + 0x54], ebx
mov ecx, ebp
add dword [esi + 0x50], ebx
add dword [esi + 0x20], ebx
mov edi, dword [esi + 0x54]
adc dword [esi + 0x24], eax
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], eax
lea eax, [esp + 0x34]
push eax
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f7fb
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f81e
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
add edx, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
adc ecx, dword [ebx + 0xc]
xor eax, eax
mov ebx, edi
add ebx, dword [esi + 0x20]
adc eax, dword [esi + 0x24]
cmp eax, ecx
ja 0x1008f84b
jb 0x1008f8c2
cmp ebx, edx
jb 0x1008f8c2
lea eax, [esp + 0x4c]
mov ecx, ebp
push eax
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f861
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f884
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
add edi, dword [ebx + 8]
mov eax, dword [eax + 0x14]
adc eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x1008f8ae
ja 0x1008f8a9
cmp edi, dword [esi + 0x20]
jbe 0x1008f8ae
sub edi, dword [esi + 0x20]
jmp 0x1008f8b0
xor edi, edi
add dword [ebp + 0x10], 0xffffffff
jne 0x1008f8bf
mov dword [ebp + 0xc], 0
jmp 0x1008f8c2
inc dword [ebp + 0xc]
add dword [esi + 0x50], edi
sub dword [esi + 0x54], edi
add dword [esi + 0x20], edi
mov ebp, dword [esp + 0x70]
adc dword [esi + 0x24], 0
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
jmp 0x1008f67e
test ebp, ebp
cmove ecx, ebp
push ecx
push edi
push ebx
push 0x10310cf4
mov ecx, eax
call dword [edx + 0x88]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [esi + 0x14], ecx
test eax, eax
jne 0x1008f9a2
mov eax, dword [esi + 0x54]
add dword [esi + 0x20], eax
mov dword [esi + 0x54], 0
adc dword [esi + 0x24], 0
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], 0
test ebp, ebp
je 0x1008f67e
inc dword [esi + 0x30]
inc dword [esi + 0x34]
xor ebp, ebp
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jmp 0x1008f67a
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x54
ret 0x14
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x3c]
call fcn.1008fe10
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x1008f966
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, edi
jb 0x1008f993
ja 0x1008f989
cmp ecx, edx
jbe 0x1008f993
sub ecx, edx
sbb eax, edi
mov dword [esp + 0x14], eax
jmp 0x1008f9a5
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
jmp 0x1008f9a5
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x10]
mov eax, 1
pop edi
pop ebp
cmp ecx, eax
pop ebx
cmova eax, ecx
pop esi
add esp, 0x54
ret 0x14