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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x90], esi
push edi
test esi, esi
jne 0x100cfcc5
lea eax, [ecx + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x9c]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x9c], eax
test ecx, ecx
jne 0x100cfcf9
test eax, eax
je 0x100d00bc
mov ecx, esi
call fcn.100cfa70
mov dword [esp + 0x6c], eax
cmp eax, 2
jne 0x100cfd23
cmp word [esi], 0
je 0x100d00bc
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x50], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], ecx
cmp ax, word [esi]
jge 0x100d00bc
mov eax, dword [esi + 0xc]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x44], ebp
movsx edi, word [eax + ecx*2]
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x5c], edi
mov esi, edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x2c], edi
je 0x100d009a
cmp esi, eax
je 0x100d009a
cmp ebx, eax
je 0x100cfdca
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + ebx*8]
sub eax, dword [ecx + esi*8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + ebx*8 + 4]
sub eax, dword [ecx + esi*8 + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.100d5950
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
test eax, eax
je 0x100d0082
mov eax, dword [esp + 0x3c]
jmp 0x100cfde6
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x100d0068
test eax, eax
jns 0x100cfe02
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x18]
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 + 0x64], eax
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
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 eax, dword [esp + 0x68]
add eax, edi
cmp eax, 0xffff1000
jle 0x100d0029
mov edx, dword [esp + 0x20]
add eax, 0x10000
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 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 + 0x20]
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 + 0x70], eax
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
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 + 0x74], eax
sub ebp, dword [esp + 0x74]
mov dword [esp + 0x30], ebp
test edi, edi
jne 0x100cff06
neg ebp
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x38]
mov eax, edx
cmp dword [esp + 0x14], edx
cmovl eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
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 + 0x28]
mov edx, dword [esp + 0x4c]
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 0x100cff7f
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
jmp 0x100cff85
mov edx, dword [esp + 0x28]
mov eax, ebp
mov ecx, dword [esp + 0x84]
push eax
call fcn.100d5e90
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x30]
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 + 0x28]
mov edx, dword [esp + 0x4c]
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 0x100d0004
mov eax, dword [esp + 0x58]
jmp 0x100d000c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ebp
push dword [esp + 0x34]
mov ecx, dword [esp + 0x94]
mov edx, eax
call fcn.100d5e90
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x100d0031
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x5c]
cmp esi, ebx
je 0x100d006a
mov ebp, dword [esp + 0x50]
nop dword [eax]
add eax, dword [esp + 0x54]
add dword [ebp + esi*8], eax
mov eax, dword [esp + 0x58]
add eax, ecx
add dword [ebp + esi*8 + 4], eax
cmp esi, edi
lea eax, [esi + 1]
cmovge eax, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp esi, ebx
jne 0x100d0040
jmp 0x100d006a
mov esi, ebx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
cmp ebx, edi
lea eax, [ebx + 1]
cmovge eax, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x3c]
cmp ebx, esi
jne 0x100cfd81
mov esi, dword [esp + 0x94]
lea ebx, [edi + 1]
mov ecx, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], ecx
movsx eax, word [esi]
cmp ecx, eax
jl 0x100cfd41
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret