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

Disassembly:
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x14], edx
push edi
mov edi, dword [esp + 0x44]
imul ecx, edi, 0xcc
add ecx, edx
test byte [ebx + 0x10], 8
mov dword [esp + 0x3c], ecx
mov eax, dword [ecx + 0xc8]
mov esi, dword [ecx + 0xcc]
mov dword [esp + 0x20], eax
jne 0x1010a084
mov eax, dword [ebx]
push ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
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 + 0x30], eax
add esi, dword [esp + 0x30]
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
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 + 0x30], eax
mov ebp, dword [esp + 0x30]
test edi, edi
jne 0x10109d42
mov eax, dword [esp + 0x4c]
cmp byte [eax + 0x78], 0
je 0x10109d55
cmp byte [eax + 0x7a], 0
jne 0x10109d71
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x48]
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0xc], ebp
xor edi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp esi, 1
jne 0x10109e0a
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebx]
add esi, dword [ebx + 4]
mov dword [esp + 0x2c], esi
mov al, byte [ecx + 0x9bc]
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x19c]
add ecx, 0x1a0
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x10109da0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x9b8]
mov dword [esp + 0x38], eax
neg eax
mov dword [esp + 0x3c], eax
nop dword [eax]
sub esi, dword [ecx + 0xc]
cmp esi, eax
jl 0x10109da0
mov eax, dword [ecx + 8]
add eax, dword [esp + 0x38]
cmp dword [esp + 0x2c], eax
jle 0x10109d7e
mov eax, dword [esp + 0x28]
add ecx, 0x20
mov esi, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x28], eax
test eax, eax
mov eax, dword [esp + 0x3c]
jne 0x10109d10
jmp 0x10109da0
cmp edi, 1
jne 0x10109c9c
mov eax, dword [esp + 0x4c]
cmp byte [eax + 0x79], 0
jne 0x10109d67
or dword [ebx + 0x10], 8
mov dword [ebx + 0xc], ebp
pop ebp
pop edi
mov dword [ebx + 8], esi
pop esi
pop ebx
add esp, 0x34
ret
cmp byte [eax + 0x7b], 0
je 0x10109c9c
mov dword [esp + 0x34], 1
jmp 0x10109ca4
cmp byte [esp + 0x13], dl
jne 0x10109d90
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax + 0x9b4]
jg 0x10109da0
mov eax, dword [ecx + 0x10]
mov edx, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0x3a0]
mov eax, esi
shl eax, 5
add ecx, 0x384
add ecx, eax
test esi, esi
je 0x10109e02
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x9b8]
neg eax
mov dword [esp + 0x3c], eax
nop dword [eax + eax]
mov edx, dword [ecx + 8]
sub edx, dword [ebx]
cmp edx, eax
jl 0x10109dfe
mov ebp, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
sub eax, dword [ebp + 0x9b8]
mov ebp, dword [esp + 0x30]
cmp dword [ebx], eax
jge 0x10109e9f
mov eax, dword [esp + 0x3c]
sub ecx, 0x20
sub esi, 1
jne 0x10109dd0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov eax, edx
sub eax, 1
je 0x1010a001
sub eax, 1
je 0x10109ffb
sub eax, 1
je 0x10109ff4
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x10109ec9
test byte [edi + 0x10], 8
jne 0x10109e4b
push dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov ecx, edi
push esi
call fcn.10109be0
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
sar ecx, 1
sar eax, 1
sub ecx, eax
sar esi, 1
sub ecx, dword [edi]
add ecx, dword [ebx]
add esi, dword [edi + 8]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x48]
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 + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, ebp
sar eax, 1
sub ecx, eax
add ecx, esi
mov dword [esp + 0x18], ecx
jmp 0x10109ed1
cmp byte [esp + 0x13], 0
jne 0x10109eb6
mov eax, dword [esp + 0x1c]
cmp edx, dword [eax + 0x9b4]
jge 0x10109dfe
mov edx, dword [esp + 0x20]
mov edi, dword [ecx + 0x10]
or edx, 2
mov dword [esp + 0x20], edx
jmp 0x10109e02
mov ecx, dword [esp + 0x18]
mov eax, ebp
sar eax, 1
mov edx, dword [esp + 0x4c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ebp
cmp byte [edx + 0x7c], 0
je 0x10109fbc
cmp ebp, 0x40
jg 0x10109f56
cmp ebp, 0x20
jl 0x10109f02
add ecx, eax
mov ebp, 0x40
and ecx, 0xffffffc0
mov dword [esp + 0x18], ecx
jmp 0x10109fbc
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [esp + 0x48], eax
test ebp, ebp
jle 0x10109f4e
mov edx, dword [esp + 0x18]
lea edi, [ecx + ebp]
mov esi, eax
lea eax, [edi + 0x20]
and eax, 0xffffffc0
sub esi, ecx
sub eax, ebp
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
cmovns edx, ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, dword [esp + 0x48]
test esi, esi
cmovns eax, esi
cmp eax, edx
cmovg ecx, edi
add ecx, 0x20
and ecx, 0xffffffc0
mov dword [esp + 0x18], ecx
jmp 0x10109fbc
mov ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x10109fbc
mov ecx, dword [esp + 0x40]
mov eax, ebp
mov ecx, dword [ecx + 0xc]
mov edx, ecx
sub edx, ebp
sub eax, ecx
cmovns edx, eax
cmp edx, 0x28
jge 0x10109f7c
cmp ecx, 0x30
jge 0x10109f79
mov ecx, 0x30
jmp 0x10109f87
cmp edx, 0x28
cmovge ecx, ebp
cmp ecx, 0xc0
jge 0x10109fb2
mov eax, ecx
and ecx, 0xffffffc0
and eax, 0x3f
cmp eax, 0xa
jb 0x10109fad
cmp eax, 0x20
jae 0x10109fa3
mov eax, 0xa
lea ebp, [ecx + eax]
jmp 0x10109fb8
mov edx, 0x36
cmp eax, edx
cmovb eax, edx
lea ebp, [ecx + eax]
jmp 0x10109fb8
lea ebp, [ecx + 0x20]
and ebp, 0xffffffc0
mov ecx, dword [esp + 0x18]
lea esi, [ebp + 0x20]
mov dword [ebx + 0xc], ebp
add esi, ecx
lea edi, [ecx + 0x20]
and esi, 0xffffffc0
and edi, 0xffffffc0
sub esi, ebp
mov eax, esi
sub eax, ecx
cdq
mov ecx, eax
mov eax, edi
sub eax, dword [esp + 0x18]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
cmp eax, ecx
mov eax, dword [esp + 0x14]
cmovg edi, esi
jmp 0x1010a009
mov eax, ecx
sub eax, edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x14]
jmp 0x1010a009
mov eax, dword [esp + 0x14]
mov edi, eax
sub edi, ebp
mov dword [ebx + 8], edi
cmp dword [esp + 0x34], 0
je 0x1010a07f
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x40
jge 0x1010a022
mov ecx, 0x40
jmp 0x1010a028
add ecx, 0x20
and ecx, 0xffffffc0
sub edx, 1
je 0x1010a077
sub edx, 1
je 0x1010a07c
sub edx, 1
je 0x1010a07f
mov edx, ecx
sar edx, 1
lea eax, [edx + edi]
test cl, 0x40
je 0x1010a05d
and eax, 0xffffffc0
mov dword [ebx + 0xc], ecx
pop ebp
add eax, 0x20
pop edi
sub eax, edx
or dword [ebx + 0x10], 8
pop esi
mov dword [ebx + 8], eax
pop ebx
add esp, 0x34
ret
add eax, 0x20
mov dword [ebx + 0xc], ecx
pop ebp
and eax, 0xffffffc0
pop edi
sub eax, edx
or dword [ebx + 0x10], 8
pop esi
mov dword [ebx + 8], eax
pop ebx
add esp, 0x34
ret
sub eax, ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
or dword [ebx + 0x10], 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret