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

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, 1
movsx edx, word [eax]
mov ecx, ebp
movsx eax, word [eax + 2]
shl ebx, cl
sar ebx, 1
add edx, ebx
mov dword [esp + 0x10], ebx
add eax, ebx
sar edx, cl
mov ebx, dword [esp + 0x40]
push esi
push edi
sar eax, cl
lea esi, [ebx*4]
mov dword [esp + 0x30], edx
push esi
mov dword [esp + 0x38], eax
neg edx
push 0
push dword [esp + 0x64]
neg eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.10513d40
push esi
push 0
push dword [esp + 0x74]
call fcn.10513d40
mov ecx, dword [esp + 0x7c]
lea edi, [ebx - 1]
mov esi, dword [esp + 0x8c]
add esp, 0x18
movsx eax, word [ecx]
imul eax, eax, 0x145
add eax, 0x40
sar eax, 7
mov dword [esp + 0x28], eax
movsx eax, word [ecx + 2]
imul eax, eax, 0x145
add eax, 0x40
sar eax, 7
mov dword [esp + 0x2c], eax
test edi, edi
js 0x100c6c51
nop dword [eax + eax]
mov eax, dword [esp + 0x6c]
movsx eax, word [eax + edi*2]
test esi, esi
je 0x100c6c11
mov cl, byte [eax + esi]
jmp 0x100c6c13
mov cl, 0x20
movzx edx, cl
mov ecx, dword [esp + 0x44]
imul edx, dword [ecx + eax*4]
neg eax
sbb eax, eax
and eax, 4
mov ecx, dword [esp + eax + 0x30]
mov ebp, dword [esp + eax + 0x28]
shl ecx, 5
add ecx, ebp
cmp edx, ecx
jge 0x100c6c49
mov eax, dword [esp + eax + 0x38]
shl eax, 5
sub eax, ebp
cmp edx, eax
jle 0x100c6c49
dec ebx
sub edi, 1
jns 0x100c6c00
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x48], ebx
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x100c6e52
mov ecx, 0x15
sub ecx, ebp
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x6c]
movsx ebx, word [ecx + eax*2]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
lea eax, [ebx*4]
mov ecx, dword [eax + ecx]
mov ebp, ecx
sar ebp, 0x1f
mov dword [esp + 0x24], eax
test esi, esi
je 0x100c6c9e
mov al, byte [ebx + esi]
jmp 0x100c6ca0
mov al, 0x20
movzx edi, al
mov edx, ebp
xor edx, ecx
mov eax, ebx
sub edx, ebp
neg eax
sbb eax, eax
and eax, 4
mov ecx, dword [esp + eax + 0x30]
mov eax, edi
imul eax, edx
shl ecx, 5
cmp eax, ecx
jl 0x100c6d9d
mov eax, dword [esp + 0x50]
mov esi, ebx
mov ecx, dword [esp + 0x7c]
neg esi
sbb esi, esi
and esi, 2
mov dword [esp + 0x1c], esi
movsx eax, word [esi + eax]
add eax, dword [esp + 0x18]
sar eax, cl
add eax, edx
imul edi
mov edi, eax
mov ebx, edx
mov eax, dword [esp + 0x54]
push ebx
push edi
movsx eax, word [esi + eax]
cdq
push edx
push eax
call fcn.10511b50
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x58]
shrd esi, ecx, 0x10
sar ecx, 0x10
add esi, edi
adc ecx, ebx
mov ebx, dword [esp + 0x1c]
movsx eax, word [ebx + eax]
cdq
push edx
push eax
push ecx
push esi
call fcn.10511b50
mov ecx, dword [esp + 0x20]
call fcn.10511c50
mov esi, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x5c]
mov ecx, edi
xor ecx, ebp
sub ecx, ebp
mov dword [esi + eax], ecx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x100c6d51
mov ecx, dword [esp + 0x28]
mov cl, byte [ecx + eax]
jmp 0x100c6d53
mov cl, 0x20
mov eax, dword [esp + 0x64]
movsx edx, word [ebx + eax]
movzx eax, cl
mov ecx, dword [esp + 0x7c]
imul edx, eax
mov eax, dword [esp + 0x10]
add edx, 0x10
sar edx, 5
imul edx, edi
sar edx, cl
mov ecx, dword [esp + 0x4c]
xor edx, ebp
sub edx, ebp
mov ebp, dword [esp + 0x60]
mov dword [esi + ebp], edx
mov esi, dword [esp + 0x74]
test edi, edi
je 0x100c6da9
cmp ecx, 0xffffffff
mov ebx, eax
mov dword [esp + 0x14], ebx
cmove ecx, eax
mov dword [esp + 0x4c], ecx
jmp 0x100c6dad
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x48]
jl 0x100c6c72
test ebx, ebx
js 0x100c6e55
cmp ecx, ebx
jne 0x100c6e55
mov eax, dword [esp + 0x6c]
movsx ecx, word [eax + ebx*2]
mov eax, dword [esp + 0x5c]
lea edi, [ecx*4]
mov eax, dword [edi + eax]
cmp eax, 1
je 0x100c6dec
cmp eax, 0xffffffff
jne 0x100c6e55
test esi, esi
je 0x100c6df5
mov al, byte [ecx + esi]
jmp 0x100c6df7
mov al, 0x20
mov edx, dword [esp + 0x64]
movzx esi, al
mov eax, dword [esp + 0x44]
imul esi, dword [edi + eax]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 2
movsx eax, word [eax + edx]
imul edx, eax, 0x20d
add edx, 0x40
sar edx, 7
neg ecx
sbb ecx, ecx
and ecx, 4
mov eax, dword [esp + ecx + 0x30]
shl eax, 5
add eax, edx
cmp esi, eax
jge 0x100c6e55
mov eax, dword [esp + ecx + 0x38]
shl eax, 5
sub eax, edx
cmp esi, eax
jle 0x100c6e55
mov eax, dword [esp + 0x5c]
mov dword [edi + eax], 0
mov dword [edi + ebp], 0
or ebx, 0xffffffff
mov eax, dword [esp + 0x68]
lea ecx, [ebx + 1]
pop edi
pop esi
pop ebp
mov word [eax], cx
pop ebx
add esp, 0x30
ret