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

Disassembly:
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
test ebx, ebx
jne 0x100711d7
lea eax, [ebx + 0x14]
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x84]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x88]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x88], eax
test ecx, ecx
jne 0x10071213
test eax, eax
je 0x100715dd
push ebx
call fcn.100716a0
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, 2
jne 0x10071239
cmp word [ebx], 0
je 0x100715dd
mov eax, 6
pop ebx
add esp, 0x78
ret
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x34], eax
xor eax, eax
push ebp
xor ebp, ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0xc], ebp
cmp ax, word [ebx]
jge 0x100715dc
push esi
push edi
nop word [eax + eax]
mov eax, dword [ebx + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], edi
movsx edx, word [eax + ecx*2]
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x4c], edx
mov esi, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], edx
je 0x100715b8
cmp esi, eax
je 0x100715b8
cmp ebp, eax
je 0x100712f4
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + ebp*8]
sub eax, dword [ecx + esi*8]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + ebp*8 + 4]
sub eax, dword [ecx + esi*8 + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
push eax
call fcn.10073750
mov ecx, dword [esp + 0x84]
mov edx, eax
add esp, 4
mov dword [esp + 0x24], eax
test edx, edx
je 0x1007159c
mov eax, dword [esp + 0x28]
jmp 0x1007130c
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], edx
test edi, edi
je 0x1007157c
test eax, eax
jns 0x10071328
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
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 + 0x54], eax
mov edi, dword [esp + 0x54]
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 eax, dword [esp + 0x58]
add eax, edi
cmp eax, 0xffff1000
jle 0x10071541
mov ecx, dword [esp + 0x80]
add eax, 0x10000
add ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
add eax, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
test edi, edi
jne 0x100713c5
neg eax
mov dword [esp + 0x20], eax
jmp 0x100713cb
neg ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x78]
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 + 0x60], eax
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
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 + 0x64], eax
sub ebx, dword [esp + 0x64]
mov dword [esp + 0x18], ebx
test edi, edi
jne 0x10071433
neg ebx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x24]
mov eax, edx
cmp dword [esp + 0x10], edx
cmovl eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x18]
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
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
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 + 0x6c], eax
cmp edi, dword [esp + 0x6c]
jg 0x100714a9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
jmp 0x100714af
mov eax, dword [esp + 0x10]
mov ecx, ebx
push ecx
push eax
push dword [esp + 0x28]
call fcn.10070860
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
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
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
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 + 0x74], eax
cmp edi, dword [esp + 0x74]
jg 0x10071520
mov eax, dword [esp + 0x48]
jmp 0x10071528
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
push eax
push dword [esp + 0x44]
call fcn.10070860
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x10071549
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
cmp esi, ebp
je 0x1007157e
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
add eax, dword [esp + 0x44]
add dword [edi + esi*8], eax
mov eax, dword [esp + 0x48]
add eax, ecx
add dword [edi + esi*8 + 4], eax
cmp esi, edx
lea eax, [esi + 1]
cmovge eax, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp esi, ebp
jne 0x10071555
jmp 0x1007157e
mov esi, ebp
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x4c]
lea eax, [ebp + 1]
cmp ebp, edx
cmovge eax, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x28]
cmp ebp, esi
jne 0x100712a6
mov ebx, dword [esp + 0x8c]
lea ebp, [edx + 1]
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x50], ecx
movsx eax, word [ebx]
cmp ecx, eax
jl 0x10071260
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret