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

Disassembly:
jmp 0x1039dad0
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
test ebx, ebx
jne 0x1039dae7
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 0x1039db23
test eax, eax
je 0x1039deed
push ebx
call fcn.1015c870
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, 2
jne 0x1039db49
cmp word [ebx], 0
je 0x1039deed
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 0x1039deec
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 0x1039dec8
cmp esi, eax
je 0x1039dec8
cmp ebp, eax
je 0x1039dc04
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.1015eddc
mov ecx, dword [esp + 0x84]
mov edx, eax
add esp, 4
mov dword [esp + 0x24], eax
test edx, edx
je 0x1039deac
mov eax, dword [esp + 0x28]
jmp 0x1039dc1c
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 0x1039de8c
test eax, eax
jns 0x1039dc38
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 0x1039de51
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 0x1039dcd5
neg eax
mov dword [esp + 0x20], eax
jmp 0x1039dcdb
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 0x1039dd43
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 0x1039ddb9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
jmp 0x1039ddbf
mov eax, dword [esp + 0x10]
mov ecx, ebx
push ecx
push eax
push dword [esp + 0x28]
call fcn.1015e56c
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 0x1039de30
mov eax, dword [esp + 0x48]
jmp 0x1039de38
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
push eax
push dword [esp + 0x44]
call fcn.1015e56c
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x1039de59
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
cmp esi, ebp
je 0x1039de8e
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 0x1039de65
jmp 0x1039de8e
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 0x1039dbb6
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 0x1039db70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret