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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x134]
jge 0x1009b59e
cmp byte [esi + 0x251], 0
je 0x1009b586
mov dword [esi + 0xc], 0x86
mov eax, dword [esi + 0x1c]
pop edi
mov dword [esi + 0x134], 1
mov dword [esi + 0x20], eax
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp word [esi + 0x15c], 0
je 0x1009b5c0
cmp word [esi + 0x15e], 0
je 0x1009b5c0
cmp word [esi + 0x160], 0
je 0x1009b5c0
xor ebx, ebx
jmp 0x1009b5c5
mov ebx, 1
movzx eax, word [esi + 0x122]
mov ecx, eax
mov dword [esp + 0x10], ebx
cmp ax, word [esi + 0x2c]
jae 0x1009b576
shl ecx, 3
test ebx, ebx
je 0x1009b5e4
mov edx, dword [esi + 0x30]
jmp 0x1009b5e7
mov edx, dword [esi + 0x38]
mov ebp, dword [esi + 0x34]
add edx, ecx
movzx eax, word [esi + 0x124]
add ebp, ecx
mov ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], ebp
lea edi, [edx + 4]
mov dword [esp + 0x18], edi
cmp ax, word [esi + 0x50]
jae 0x1009b705
test ebx, ebx
je 0x1009b62a
mov eax, dword [esi + 0x54]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 4]
sub eax, dword [edi]
push eax
mov eax, dword [ecx]
sub eax, dword [edx]
push eax
jmp 0x1009b6c9
mov eax, dword [esi + 0x5c]
mov ebx, dword [esi + 0xe0]
lea ecx, [eax + ecx*8]
cmp ebx, dword [esi + 0xe4]
jne 0x1009b64b
mov eax, dword [ecx + 4]
sub eax, dword [edi]
push eax
mov eax, dword [ecx]
sub eax, dword [edx]
push eax
jmp 0x1009b6c9
mov eax, dword [ecx]
sub eax, dword [edx]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xe4]
movzx ecx, word [esi + 0x124]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + ecx*8 + 4]
sub eax, dword [edi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
push dword [esp + 0x28]
mov eax, dword [esi + 0x260]
push esi
call eax
movzx ecx, word [esi + 0x124]
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x58]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 4]
sub eax, dword [ebp + 4]
push eax
mov eax, dword [ecx]
sub eax, dword [ebp]
push eax
mov eax, dword [esi + 0x25c]
push esi
call eax
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x1009b70f
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
cmp dword [esi + 0x134], 0
mov dword [esp + 0x14], eax
jle 0x1009b586
dec dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [eax + ecx*4]
movzx eax, word [esi + 0x74]
cmp ebp, eax
jb 0x1009b750
cmp byte [esi + 0x251], 0
je 0x1009b87a
pop edi
mov dword [esi + 0xc], 0x86
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [esp + 0x10], 0
lea ebx, [ebp*8]
je 0x1009b773
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + ebx + 4]
sub eax, dword [edi]
push eax
mov eax, dword [ecx + ebx]
sub eax, dword [edx]
push eax
jmp 0x1009b811
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0x80]
cmp eax, dword [esi + 0xe4]
jne 0x1009b796
mov eax, dword [ecx + ebx + 4]
sub eax, dword [edi]
push eax
mov eax, dword [ecx + ebx]
sub eax, dword [edx]
push eax
jmp 0x1009b811
mov dword [esp + 0x20], eax
mov eax, dword [ecx + ebx]
sub eax, dword [edx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x80]
mov eax, dword [eax + ebx + 4]
sub eax, dword [edi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x28], eax
push dword [esp + 0x28]
push dword [esp + 0x30]
mov eax, dword [esi + 0x260]
push esi
call eax
mov ecx, dword [esi + 0x7c]
mov edi, eax
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [ecx + ebx + 4]
sub eax, dword [edx + 4]
push eax
mov eax, dword [ecx + ebx]
sub eax, dword [edx]
push eax
mov eax, dword [esi + 0x25c]
push esi
call eax
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x1009b860
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1009b862
push eax
push dword [esp + 0x18]
push edi
call fcn.1008a1a0
add esp, 0xc
mov edi, eax
jmp 0x1009b862
xor edi, edi
sub edi, ebx
lea eax, [esi + 0x6c]
push edi
push ebp
push eax
mov eax, dword [esi + 0x268]
push esi
call eax
mov edi, dword [esp + 0x28]
add esp, 0x10
dec dword [esi + 0x134]
cmp dword [esi + 0x134], 0
jle 0x1009b586
mov edx, dword [esp + 0x1c]
jmp 0x1009b720