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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x90]
mov ebx, ecx
mov edx, dword [ebx + 0xc]
push edi
mov edi, dword [ebx + 0x24]
mov eax, edi
mov ecx, 1
xor ebp, ebp
shr eax, 2
test cl, al
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
je 0x1016fab9
mov dword [esp + 0x10], 2
mov eax, edi
shr eax, 3
test al, 1
je 0x1016faca
mov dword [esp + 0x10], 1
cmp edx, 8
je 0x1016fae2
cmp edx, 0x10
je 0x1016fadb
mov ecx, 2
jmp 0x1016faec
mov ebp, 2
jmp 0x1016faec
mov eax, edi
shr eax, 1
movzx ebp, al
and ebp, 1
test cl, 1
mov edi, dword [esp + 0x30]
je 0x1016fc99
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
and al, 0xc1
or al, 0x41
push ecx
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100ea3e0
mov eax, dword [esp + 0x10]
mov edx, eax
sar edx, 1
and edx, 1
shl edx, 0x10
mov ecx, ebp
and ecx, 3
or edx, ecx
add edx, edx
add edx, edx
add edx, edx
and eax, 1
or edx, eax
mov eax, dword [esi + 8]
push edi
push 0
shl edx, 9
and eax, 0xefffcdff
push 0x20
or edx, eax
push 0
mov ecx, esi
mov dword [esi + 8], edx
call fcn.100f2e20
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x50]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebx + 0x34]
mov edx, dword [ecx + eax*4]
movzx eax, byte [ebx + 0x9a]
shl eax, 0xe
xor eax, dword [esi + 0x10]
mov dword [esp + 0x1c], edx
and eax, 0x4000
xor dword [esi + 0x10], eax
movzx eax, byte [ebx + 0x9e]
mov ecx, dword [esi + 0x10]
shl eax, 0xd
xor eax, ecx
and eax, 0x2000
xor eax, ecx
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
shr ecx, 0x15
and ecx, 7
mov dword [esp + 0x18], ecx
mov ecx, edi
and ecx, 7
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
shl ecx, 7
and edx, 0xfffffc3f
or ecx, edx
or ecx, 0x20
mov dword [esp + 0x24], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, 5
ja case.0x1016fbd5.0
jmp dword [ecx*4 + 0x10170020]
and eax, 0xfe45ffff
or eax, 0x450000
jmp 0x1016fc05
and eax, 0xfe69ffff
or eax, 0x690000
jmp 0x1016fc05
and eax, 0xfe8dffff
or eax, 0x8d0000
jmp 0x1016fc05
and eax, 0xfe00ffff
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
and eax, 0xff
shl eax, 5
and ecx, 0xffff601f
or eax, ecx
push edx
push edi
mov dword [esp + 0x24], eax
mov dword [esi + 0x10], eax
call fcn.100ea390
mov ecx, dword [esp + 0x24]
xor eax, ecx
and eax, 0x1f
xor eax, ecx
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x38]
add esp, 8
cmp byte [ecx], 0
je 0x1016fc52
and eax, 0xfe00ffff
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x28]
mov eax, dword [edx]
and ch, 0x8f
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
shl eax, 0xc
or eax, ecx
mov ecx, dword [esp + 0x34]
or ah, 0xc
mov dword [esi + 0xc], eax
cmp dword [ecx + 0x1c], 0
je 0x1016fc8e
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x38]
push edx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x1016fc93
mov eax, 2
mov edx, dword [esp + 0x14]
mov ecx, eax
cmp dword [ebx + 0x74], 0
je 0x1016ff50
mov eax, ecx
and eax, 1
je 0x1016fdfc
cmp edx, 0x10
jne 0x1016fdfc
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x78]
add edx, 1
cmp edx, dword [esp + 0x30]
jne 0x1016fdf8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
and ecx, 0xffffffc0
or ecx, 0x40
mov dword [esi + 8], ecx
push 0x10
mov ecx, esi
call fcn.100ea3e0
mov edx, dword [esp + 0x10]
shl ebp, 0xc
xor ebp, dword [esi + 8]
push edx
and ebp, 0x3000
xor dword [esi + 8], ebp
mov ecx, esi
call fcn.100fc410
mov eax, dword [ebx + 0x78]
push edi
push 0
push eax
push 2
mov ecx, esi
call fcn.100f2e20
mov ecx, dword [esi + 0xc]
lea eax, [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov ebp, edi
and ebp, 7
shr eax, 0x15
mov dword [esp + 0x30], ebp
shl ebp, 7
and ecx, 0xfffffc1f
and eax, 7
or ebp, ecx
cmp eax, 5
mov dword [esi + 0xc], ebp
ja case.0x1016fd43.0
jmp dword [eax*4 + 0x10170038]
mov edx, dword [esi + 0x10]
and edx, 0xfe45ffff
or edx, 0x450000
mov dword [esi + 0x10], edx
jmp 0x1016fdb1
mov eax, dword [esi + 0x10]
and eax, 0xfe69ffff
or eax, 0x690000
mov dword [esi + 0x10], eax
jmp 0x1016fdb1
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x1016fdb1
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
jmp 0x1016fdb1
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x1016fdb1
and dword [esi + 0x10], 0xfe00ffff
push 0
push edi
call fcn.100ea390
mov ecx, dword [esi + 0x10]
and eax, 0x1f
and ecx, 0xffff6400
or eax, ecx
mov ecx, dword [esp + 0x2c]
or ah, 4
and ebp, 0xffff8fff
add esp, 8
push ecx
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x28]
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
shl eax, 0xc
or eax, ebp
or ah, 0xc
mov dword [esi + 0xc], eax
jmp 0x10170000
mov edx, dword [esp + 0x14]
test eax, eax
je 0x1016fec1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 8]
and eax, 0xff7fffc0
or eax, 0x600040
cmp dword [esp + 0x14], 8
mov dword [esi + 8], eax
jne 0x1016fe34
shl ebp, 0xc
xor ebp, eax
and ebp, 0x3000
xor ebp, eax
mov dword [esi + 8], ebp
jmp 0x1016fe3a
and ah, 0xcf
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x13
and eax, 1
or ecx, eax
shl ecx, 9
and edx, 0xeffffdff
or ecx, edx
push edi
mov dword [esi + 8], ecx
mov eax, dword [ebx + 0x78]
push 0
push eax
push 2
mov ecx, esi
call fcn.100f2e20
push edi
push 0
push 0
push 0x20
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 4]
mov edx, edi
shl edx, 0xc
xor edx, dword [esi + 0xc]
lea eax, [esi + 8]
and edx, 0x7000
xor edx, dword [esi + 0xc]
push eax
or dh, 0xc
lea eax, [esp + 0x34]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x38]
push eax
mov dword [esi + 0xc], edx
call fcn.10142640
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
test cl, 1
je 0x10170010
cmp edx, 0x10
jne 0x10170010
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
lea ebp, [esi + 8]
and eax, 0xff7fdfc0
or eax, 0x601040
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.100fc410
mov eax, dword [ebx + 0x7c]
push edi
push 0
push eax
push 2
mov ecx, esi
call fcn.100f2e20
push edi
push 0
push 0
push 0x20
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
mov edx, dword [ebx + 0x28]
mov eax, dword [edx + 4]
shl edi, 0xc
xor edi, dword [esi + 0xc]
push ebp
and edi, 0x7000
xor edi, dword [esi + 0xc]
lea ecx, [esp + 0x38]
or edi, 0xc00
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], edi
push ecx
jmp 0x10170005
test cl, 1
je 0x10170010
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
and al, 0xc0
or al, 0x40
push ecx
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100ea3e0
mov eax, dword [esp + 0x10]
mov edx, eax
sar edx, 1
and edx, 1
shl edx, 0x10
and ebp, 3
or edx, ebp
add edx, edx
add edx, edx
add edx, edx
and eax, 1
or edx, eax
mov eax, dword [esi + 8]
lea ebp, [esi + 8]
shl edx, 9
and eax, 0xefffcdff
or edx, eax
mov dword [ebp], edx
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x5c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebx + 0x68]
mov edx, dword [ecx + eax*4]
push edi
push 0
push edx
push 1
mov ecx, esi
call fcn.100f2e20
push edi
push 0
push 0
push 0x20
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 4]
shl edi, 0xc
xor edi, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
and edi, 0x7000
xor edi, dword [esi + 0xc]
push ebp
or edi, 0xc00
mov dword [esi + 0xc], edi
lea edx, [esp + 0x38]
push edx
mov ecx, dword [esp + 0x3c]
call fcn.10142640
mov ecx, dword [eax]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x18
ret 0xc