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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x90]
push edi
mov edi, ecx
mov edx, dword [edi + 0x40]
mov ebx, dword [edi + 0x1c]
mov eax, edx
sub eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x24]
mov ebx, eax
mov ecx, 1
shr ebx, 2
test cl, bl
mov dword [esp + 0x20], ecx
je 0x1016c3ef
mov dword [esp + 0x10], 2
mov ebx, eax
shr ebx, 3
test bl, 1
je 0x1016c401
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
cmp ebx, 8
je 0x1016c424
cmp ebx, 0x10
je 0x1016c41a
mov ecx, 2
mov dword [esp + 0x20], ecx
jmp 0x1016c430
mov dword [esp + 0x18], 2
jmp 0x1016c430
shr eax, 1
movzx eax, al
and eax, 1
mov dword [esp + 0x18], eax
test cl, 1
mov ebp, dword [esp + 0x30]
je 0x1016c600
cmp byte [edi + 0x98], 0
je 0x1016c600
mov ecx, dword [edi + 0x44]
sub ecx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x5c]
add ecx, edx
mov edx, dword [edi + 0x50]
mov eax, dword [edx + ecx*4]
mov edx, dword [edi + 0x4c]
mov edx, dword [ebx + edx*4]
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x34]
mov edx, dword [ebx + edx*4]
cmp edx, dword [ecx + eax*4]
je 0x1016c5fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x14]
lea ebx, [esi + 8]
and ecx, 0xffffff81
or ecx, 1
mov dword [ebx], ecx
push edx
mov ecx, esi
call fcn.100ea3e0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x10
and edx, 3
or ecx, edx
add ecx, ecx
add ecx, ecx
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [ebx]
shl ecx, 9
and eax, 0xefffcdff
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x5c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx + eax*4]
push ebp
push 0
push edx
push 1
mov ecx, esi
call fcn.100f2e20
mov ecx, dword [edi + 0x44]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x50]
add ecx, eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x30]
mov eax, dword [edx + eax*4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov ecx, ebp
and ecx, 7
shl ecx, 7
and edx, 0xfffffc3f
shr eax, 0x15
or ecx, edx
and eax, 7
or ecx, 0x20
cmp eax, 5
mov dword [esi + 0xc], ecx
ja case.0x1016c529.0
jmp dword [eax*4 + 0x1016cb78]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x1016c597
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x1016c597
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
jmp 0x1016c597
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x1016c597
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x1016c597
and dword [esi + 0x10], 0xfe00ffff
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x10]
and eax, 0xff
shl eax, 5
and edx, 0xffff601f
or eax, edx
mov dword [esp + 0x30], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.100ea390
mov edx, dword [esp + 0x38]
mov ecx, edx
xor ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 0x1f
xor ecx, edx
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x38]
add esp, 8
cmp byte [eax + edx], 0
je 0x1016c5e9
and ecx, 0xfe00ffff
mov dword [esi + 0x10], ecx
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.10142640
mov ecx, dword [eax]
jmp 0x1016c600
mov ecx, dword [esp + 0x20]
cmp dword [edi + 0x74], 0
je 0x1016ca27
mov eax, ecx
and eax, 1
je 0x1016c7ca
cmp dword [esp + 0x14], 0x10
jne 0x1016c7ca
mov edx, dword [edi + 0x78]
mov ebx, dword [edi + 0x7c]
add edx, 1
cmp edx, ebx
mov dword [esp + 0x30], ebx
jne 0x1016c7ca
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x2c]
lea ebx, [esi + 8]
and eax, 0x7f
xor dword [ebx], eax
push 0x10
mov ecx, esi
call fcn.100ea3e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
shl eax, 0xc
xor eax, dword [ebx]
push ecx
and eax, 0x3000
xor dword [ebx], eax
mov ecx, esi
call fcn.100fc410
cmp byte [edi + 0x98], 0
je 0x1016c6a9
mov dl, byte [edi + 0x99]
mov eax, dword [ebx]
and eax, 0xffe1ffff
and edx, 1
shl edx, 0x14
or edx, eax
or edx, 0x10000
mov dword [ebx], edx
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + edx*4]
push ecx
mov ecx, esi
call fcn.101305c0
movzx edx, byte [edi + 0xa2]
mov ecx, dword [ebx]
mov eax, dword [edi + 0x78]
push ebp
push 0
and ecx, 0x7fffffff
shl edx, 0x1f
or edx, ecx
push eax
push 2
mov ecx, esi
mov dword [ebx], edx
call fcn.100f2e20
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + edx*4]
mov edx, dword [edi + 0x34]
mov eax, dword [edx + ecx*4]
movzx ecx, byte [edi + 0x9a]
shl ecx, 0xe
xor ecx, dword [esi + 0x10]
mov dword [esp + 0x30], eax
and ecx, 0x4000
xor dword [esi + 0x10], ecx
movzx eax, byte [edi + 0x9e]
mov ecx, dword [esi + 0x10]
shl eax, 0xd
xor eax, ecx
and eax, 0x2000
xor eax, ecx
mov dword [esi + 0x10], eax
mov edx, dword [edi + 0x30]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx]
shr ecx, 0x15
and ecx, 7
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov edx, ebp
and edx, 7
shl edx, 7
and ecx, 0xfffffc3f
or edx, ecx
mov ecx, dword [esp + 0x2c]
or edx, 0x20
cmp ecx, 5
mov dword [esi + 0xc], edx
ja case.0x1016c748.0
jmp dword [ecx*4 + 0x1016cb90]
and eax, 0xfe45ffff
or eax, 0x450000
jmp 0x1016c778
and eax, 0xfe69ffff
or eax, 0x690000
jmp 0x1016c778
and eax, 0xfe8dffff
or eax, 0x8d0000
jmp 0x1016c778
and eax, 0xfe00ffff
mov edx, dword [esp + 0x20]
push edx
push ebp
mov dword [esi + 0x10], eax
call fcn.100ea390
mov ecx, dword [esp + 0x38]
and ecx, 0xff
shl ecx, 5
and eax, 0x1f
or ecx, eax
mov eax, dword [esi + 0x10]
and eax, 0xffff6000
or ecx, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [edi + 0x38]
add esp, 8
cmp byte [ecx], 0
je 0x1016c7bf
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
push ebx
lea edx, [esp + 0x38]
push edx
jmp 0x1016cb5b
test eax, eax
je 0x1016c90d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
lea ebx, [esi + 8]
and eax, 0xff7fff80
and ecx, 0x7f
or eax, ecx
or eax, 0x600000
cmp dword [esp + 0x14], 8
mov dword [ebx], eax
jne 0x1016c810
mov ecx, dword [esp + 0x18]
shl ecx, 0xc
xor ecx, eax
and ecx, 0x3000
xor ecx, eax
mov dword [ebx], ecx
jmp 0x1016c815
and ah, 0xcf
mov dword [ebx], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, ecx
sar eax, 1
and eax, 1
shl eax, 0x13
and ecx, 1
or eax, ecx
shl eax, 9
and edx, 0xeffffdff
or eax, edx
mov dword [ebx], eax
cmp byte [edi + 0x98], 0
je 0x1016c86e
mov cl, byte [edi + 0x99]
and eax, 0xffe1ffff
and ecx, 1
shl ecx, 0x14
or ecx, eax
or ecx, 0x10000
mov dword [ebx], ecx
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov eax, dword [edx]
mov edx, dword [ecx + eax*4]
push edx
mov ecx, esi
call fcn.101305c0
movzx eax, byte [edi + 0xa2]
mov ecx, dword [ebx]
shl eax, 0x1f
and ecx, 0x7fffffff
or eax, ecx
push ebp
mov dword [ebx], eax
mov eax, dword [edi + 0x78]
push 0
push eax
push 2
mov ecx, esi
call fcn.100f2e20
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + edx*4]
movzx eax, byte [edi + 0x9a]
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4]
shl eax, 0xe
xor eax, dword [esi + 0x10]
push ebp
and eax, 0x4000
xor dword [esi + 0x10], eax
movzx edx, byte [edi + 0x9e]
mov eax, dword [esi + 0x10]
shl edx, 0xd
xor edx, eax
and edx, 0x2000
xor edx, eax
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x30]
mov edx, dword [eax]
push edx
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [edi + 0x38]
cmp byte [eax], 0
je 0x1016c8fc
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.10142640
mov ecx, dword [eax]
test cl, 1
je 0x1016cb66
cmp dword [esp + 0x14], 0x10
jne 0x1016cb66
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x2c]
lea ebx, [esi + 8]
and eax, 0x7f
xor dword [ebx], eax
push 8
mov ecx, esi
call fcn.100ea3e0
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
and ch, 0xdf
or ch, 0x10
push edx
mov dword [ebx], ecx
mov ecx, esi
call fcn.100fc410
cmp byte [edi + 0x98], 0
je 0x1016c98f
mov al, byte [edi + 0x99]
mov ecx, dword [ebx]
and ecx, 0xffe1ffff
and eax, 1
shl eax, 0x14
or eax, ecx
or eax, 0x10000
mov dword [ebx], eax
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov eax, dword [edx]
mov edx, dword [ecx + eax*4]
push edx
mov ecx, esi
call fcn.101305c0
movzx eax, byte [edi + 0xa2]
mov ecx, dword [ebx]
shl eax, 0x1f
and ecx, 0x7fffffff
or eax, ecx
push ebp
mov dword [ebx], eax
mov eax, dword [edi + 0x7c]
push 0
push eax
push 2
mov ecx, esi
call fcn.100f2e20
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + edx*4]
movzx eax, byte [edi + 0x9a]
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4]
shl eax, 0xe
xor eax, dword [esi + 0x10]
push ebp
and eax, 0x4000
xor dword [esi + 0x10], eax
movzx edx, byte [edi + 0x9e]
mov eax, dword [esi + 0x10]
shl edx, 0xd
xor edx, eax
and edx, 0x2000
xor edx, eax
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x30]
cmp byte [eax], 0
mov eax, dword [edx]
push eax
je 0x1016ca13
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
jmp 0x1016cb46
add ecx, 1
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
jmp 0x1016cb55
test cl, 1
je 0x1016cb66
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 8]
and eax, 0x7f
xor dword [ebx], eax
push ecx
mov ecx, esi
call fcn.100ea3e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, ecx
sar eax, 1
and eax, 1
shl eax, 0x10
and edx, 3
or eax, edx
mov edx, dword [ebx]
add eax, eax
add eax, eax
add eax, eax
and ecx, 1
or eax, ecx
shl eax, 9
and edx, 0xefffcdff
or eax, edx
mov dword [ebx], eax
cmp byte [edi + 0x98], 0
je 0x1016caba
mov cl, byte [edi + 0x99]
and eax, 0xffe1ffff
and ecx, 1
shl ecx, 0x14
or ecx, eax
or ecx, 0x10000
mov dword [ebx], ecx
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov eax, dword [edx]
mov edx, dword [ecx + eax*4]
push edx
mov ecx, esi
call fcn.101305c0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov eax, dword [eax + edx*4]
movzx ecx, byte [edi + 0xa2]
mov edx, dword [ebx]
push ebp
shl ecx, 0x1f
and edx, 0x7fffffff
push 0
or ecx, edx
push eax
mov dword [ebx], ecx
push 1
mov ecx, esi
call fcn.100f2e20
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + edx*4]
movzx edx, byte [edi + 0x9a]
shl edx, 0xe
xor edx, dword [esi + 0x10]
push ebp
and edx, 0x4000
xor dword [esi + 0x10], edx
movzx edx, byte [edi + 0x9e]
mov eax, dword [esi + 0x10]
shl edx, 0xd
xor edx, eax
and edx, 0x2000
xor edx, eax
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x30]
mov edx, dword [eax]
push edx
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [edi + 0x38]
cmp byte [eax], 0
je 0x1016cb55
push 0
push 1
push 0
mov ecx, esi
push 0
call fcn.100ea4b0
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.10142640
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x14
ret 0x10