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

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x8c]
test ebx, ebx
jne 0x100cf85d
lea eax, [ebx + 0x14]
pop ebx
add esp, 0x84
ret
mov eax, dword [esp + 0x90]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x94]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x94], eax
test ecx, ecx
jne 0x100cf899
test eax, eax
je 0x100cfc9b
push ebx
call fcn.100cfd60
add esp, 4
mov dword [esp + 0x64], eax
cmp eax, 2
jne 0x100cf8c2
cmp word [ebx], 0
je 0x100cfc9b
mov eax, 6
pop ebx
add esp, 0x84
ret
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x4c], eax
xor eax, eax
push edi
xor edi, edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], edi
cmp ax, word [ebx]
jge 0x100cfc9a
push ebp
push esi
mov eax, dword [ebx + 0xc]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], ebp
mov ebx, edi
mov dword [esp + 0x4c], ebp
movsx eax, word [eax + ecx*2]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov esi, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], 0xffffffff
cmp edi, eax
je 0x100cfc76
mov edi, eax
nop
mov eax, dword [esp + 0x28]
cmp esi, eax
je 0x100cfc72
cmp ebx, eax
je 0x100cf98d
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + ebx*8]
sub eax, dword [ecx + esi*8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + ebx*8 + 4]
sub eax, dword [ecx + esi*8 + 4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
call fcn.100d1e90
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
test eax, eax
je 0x100cfc5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
jmp 0x100cf9ad
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], eax
test ebp, ebp
je 0x100cfc38
cmp dword [esp + 0x28], 0
jge 0x100cf9cc
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
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 + 0x44]
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 + 0x6c], eax
mov eax, dword [esp + 0x6c]
add eax, edi
cmp eax, 0xffff1000
jle 0x100cfbf6
mov edx, dword [esp + 0x30]
add eax, 0x10000
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], eax
mov eax, edx
neg eax
test edi, edi
cmovne edx, eax
mov eax, ecx
neg eax
mov dword [esp + 0x90], edx
test edi, edi
cmovne eax, ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
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 ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
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
sub ebp, dword [esp + 0x78]
mov dword [esp + 0x14], ebp
test edi, edi
jne 0x100cfad0
neg ebp
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x38]
mov eax, edx
cmp dword [esp + 0x18], edx
cmovl eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
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 + 0x7c], eax
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
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 + 0x80], eax
cmp edi, dword [esp + 0x80]
jg 0x100cfb4c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
jmp 0x100cfb52
mov eax, dword [esp + 0x10]
mov ecx, ebp
push ecx
push eax
push dword [esp + 0x8c]
call fcn.100cef30
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
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 + 0x88], eax
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
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 + 0x8c], eax
cmp edi, dword [esp + 0x8c]
jg 0x100cfbd2
mov eax, dword [esp + 0x60]
jmp 0x100cfbda
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], ebp
push dword [esp + 0x2c]
push eax
push dword [esp + 0x98]
call fcn.100cef30
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
jmp 0x100cfbfe
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x100cfc3a
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x58]
nop word [eax + eax]
add eax, dword [esp + 0x5c]
add dword [ebp + esi*8], eax
mov eax, dword [esp + 0x60]
add eax, ecx
add dword [ebp + esi*8 + 4], eax
cmp esi, edx
lea eax, [esi + 1]
cmovge eax, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp esi, ebx
jne 0x100cfc10
jmp 0x100cfc3a
mov esi, ebx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], ebp
cmp ebx, edi
lea eax, [ebx + 1]
cmovge eax, dword [esp + 0x3c]
mov ebx, eax
cmp ebx, esi
jne 0x100cf930
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x98]
lea edi, [eax + 1]
mov ecx, dword [esp + 0x64]
inc ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x64], ecx
movsx eax, word [ebx]
cmp ecx, eax
jl 0x100cf8e3
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x84
ret