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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
test ebx, ebx
jne 0x102e0eb7
lea eax, [ebx + 0x14]
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x88]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x8c]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x8c], eax
test ecx, ecx
jne 0x102e0ef3
test eax, eax
je 0x102e12cb
push ebx
call fcn.102e12e0
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, 2
jne 0x102e0f17
xor eax, eax
mov ecx, 6
cmp word [ebx], ax
pop ebx
cmovne eax, ecx
add esp, 0x7c
ret
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x3c], eax
xor eax, eax
push edi
xor edi, edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], edi
cmp ax, word [ebx]
jge 0x102e12ca
push ebp
push esi
mov eax, dword [ebx + 0xc]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x30], 0
xor edx, edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], ebp
movsx ecx, word [eax + ecx*2]
or eax, 0xffffffff
mov esi, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], ecx
je 0x102e12a6
cmp esi, eax
je 0x102e12a2
cmp edi, eax
je 0x102e0fd1
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + edi*8]
sub eax, dword [ecx + esi*8]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + edi*8 + 4]
sub eax, dword [ecx + esi*8 + 4]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x7c]
push eax
call fcn.102df160
mov edx, dword [esp + 0x88]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x102e1282
mov eax, dword [esp + 0x20]
jmp 0x102e0fec
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x102e125f
test eax, eax
jns 0x102e1008
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
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 + 0x58], eax
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
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 + 0x5c], eax
mov eax, dword [esp + 0x5c]
add eax, edi
cmp eax, 0xffff1000
jle 0x102e1224
mov ebp, dword [esp + 0x80]
add eax, 0x10000
mov edi, dword [esp + 0x60]
add ebp, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
test edi, edi
jne 0x102e10a3
neg ebp
jmp 0x102e10a9
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
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 + 0x64], eax
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
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 + 0x68], eax
sub ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x102e1114
neg ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x1c]
mov eax, edx
cmp dword [esp + 0x40], edx
cmovl eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
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 + 0x6c], eax
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
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 + 0x70], eax
cmp edi, dword [esp + 0x70]
jg 0x102e118e
push dword [esp + 0x3c]
push dword [esp + 0x48]
jmp 0x102e1193
push ebx
push dword [esp + 0x44]
push ebp
call fcn.102dcf80
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x98]
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 + 0x74], eax
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
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 + 0x78], eax
cmp edi, dword [esp + 0x78]
jg 0x102e120f
push dword [esp + 0x3c]
push dword [esp + 0x50]
push dword [esp + 0x20]
call fcn.102dcf80
add esp, 0xc
mov edx, eax
jmp 0x102e1228
push ebx
push dword [esp + 0x44]
push dword [esp + 0x20]
call fcn.102dcf80
add esp, 0xc
mov edx, eax
jmp 0x102e1228
xor edx, edx
xor ebp, ebp
mov edi, dword [esp + 0x50]
cmp esi, edi
je 0x102e1261
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add eax, ebp
add dword [ecx + esi*8], eax
mov eax, dword [esp + 0x4c]
add eax, edx
add dword [ecx + esi*8 + 4], eax
cmp esi, ebx
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
cmovl eax, ecx
mov esi, eax
cmp esi, edi
jne 0x102e1234
jmp 0x102e1261
mov esi, edi
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x40], ebp
cmp edi, dword [esp + 0x24]
lea ecx, [edi + 1]
mov eax, dword [esp + 0x10]
cmovl eax, ecx
mov edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], edi
cmp edi, esi
jne 0x102e0f82
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x90]
lea edi, [ecx + 1]
mov ecx, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x54], ecx
movsx eax, word [ebx]
cmp ecx, eax
jl 0x102e0f38
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x7c
ret