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

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x88]
test ebx, ebx
jne 0x100b05cd
lea eax, [ebx + 0x14]
pop ebx
add esp, 0x80
ret
mov eax, dword [esp + 0x8c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x90]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x90], eax
test ecx, ecx
jne 0x100b0609
test eax, eax
je 0x100b0a0c
push ebx
call fcn.100b0ad0
add esp, 4
mov dword [esp + 0x58], eax
cmp eax, 2
jne 0x100b0632
cmp word [ebx], 0
je 0x100b0a0c
mov eax, 6
pop ebx
add esp, 0x80
ret
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x3c], eax
xor eax, eax
push ebp
xor ebp, ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x10], ebp
cmp ax, word [ebx]
jge 0x100b0a0b
push esi
push edi
mov eax, dword [ebx + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
movsx edx, word [eax + ecx*2]
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x54], edx
mov esi, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x18], edx
je 0x100b09e7
nop dword [eax]
cmp esi, eax
je 0x100b09e7
cmp ebp, eax
je 0x100b0706
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + ebp*8]
sub eax, dword [ecx + esi*8]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + ebp*8 + 4]
sub eax, dword [ecx + esi*8 + 4]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
push eax
call fcn.100b2a00
mov ecx, dword [esp + 0x18]
mov edx, eax
add esp, 4
mov dword [esp + 0x2c], edx
test edx, edx
je 0x100b09cb
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
jmp 0x100b072c
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x2c], eax
test edi, edi
je 0x100b09a7
mov eax, dword [esp + 0x30]
test eax, eax
jns 0x100b074c
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
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 edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x8c]
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 eax, dword [esp + 0x60]
add eax, edi
cmp eax, 0xffff1000
jle 0x100b096c
mov ecx, dword [esp + 0x14]
add eax, 0x10000
add ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add eax, ebx
mov dword [esp + 0x44], ecx
test edi, edi
jne 0x100b07e0
neg eax
jmp 0x100b07e6
neg ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x8c]
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 ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x84]
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 + 0x6c], eax
sub ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x100b0858
neg ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x2c]
mov eax, edx
cmp dword [esp + 0x40], edx
cmovl eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], eax
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 + 0x70], eax
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
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 0x100b08d2
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
jmp 0x100b08d8
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push ecx
push eax
push dword [esp + 0x28]
call fcn.100afcb0
add esp, 0xc
mov dword [esp + 0x20], 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 + 0x78], eax
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
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
cmp edi, dword [esp + 0x7c]
jg 0x100b0951
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
jmp 0x100b0953
mov eax, ebx
push eax
push dword [esp + 0x20]
push dword [esp + 0x4c]
call fcn.100afcb0
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x100b0974
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
cmp esi, ebp
je 0x100b09a9
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x48]
add eax, dword [esp + 0x4c]
add dword [edi + esi*8], eax
mov eax, dword [esp + 0x50]
add eax, ecx
add dword [edi + esi*8 + 4], eax
cmp esi, edx
lea eax, [esi + 1]
cmovge eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp esi, ebp
jne 0x100b0980
jmp 0x100b09a9
mov esi, ebp
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x40], edi
mov edx, dword [esp + 0x54]
lea eax, [ebp + 1]
cmp ebp, edx
cmovge eax, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x30]
cmp ebp, esi
jne 0x100b06a0
mov ebx, dword [esp + 0x94]
lea ebp, [edx + 1]
mov ecx, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], ecx
movsx eax, word [ebx]
cmp ecx, eax
jl 0x100b0653
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret