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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x38]
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0xc]
mov esi, dword [ecx + 0x90]
sub ebx, dword [edi + 0x1c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], eax
call fcn.1014abf0
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x24]
xor edx, edx
mov ecx, eax
shr ecx, 2
xor ebp, ebp
test cl, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
je 0x1016b2d8
mov ebp, 2
mov ecx, eax
shr ecx, 3
test cl, 1
je 0x1016b2e7
mov ebp, 1
mov ecx, dword [esp + 0x24]
cmp ecx, 8
je 0x1016b307
cmp ecx, 0x10
je 0x1016b2fc
mov ecx, 2
jmp 0x1016b31c
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], edx
jmp 0x1016b318
shr eax, 1
movzx eax, al
and eax, 1
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
cmp byte [edi + 0xa2], 0
je 0x1016b32d
mov dword [esp + 0x1c], 1
test byte [edi + 0x24], 1
je 0x1016b33b
mov dword [esp + 0x20], 1
test cl, 1
je 0x1016b500
cmp byte [edi + 0x98], 0
je 0x1016b500
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x24]
and al, 0x81
or al, 1
push ecx
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100ea3e0
cmp byte [esp + 0x12], 0
je 0x1016b383
mov edx, dword [esi + 8]
and dh, 0xef
or dh, 0x20
mov dword [esi + 8], edx
jmp 0x1016b395
mov eax, dword [esp + 0x18]
shl eax, 0xc
xor eax, dword [esi + 8]
and eax, 0x3000
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x14], 0x80
je 0x1016b3b0
mov eax, dword [esi + 8]
and ah, 0xf7
or ah, 4
mov dword [esi + 8], eax
mov edx, dword [esi + 8]
and edx, 0xeffffdff
mov eax, ebp
sar eax, 1
and eax, 1
shl eax, 0x13
mov ecx, ebp
and ecx, 1
or eax, ecx
shl eax, 9
or eax, edx
mov dword [esi + 8], eax
mov edx, dword [edi + 0x5c]
mov ecx, dword [edi + 0x4c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x68]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esi + 0xc]
and ecx, 0xff
and edx, 0xffe0
shl ecx, 0x15
or ecx, edx
or ecx, 0x2000001d
mov dword [esi + 0xc], ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
add ecx, ebx
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x30]
mov edx, dword [edx + ebx*4]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
shr eax, 0x15
and edx, 0xffffffbf
and eax, 7
or edx, 0x3a0
cmp eax, 5
mov dword [esi + 0xc], edx
ja case.0x1016b433.0
jmp dword [eax*4 + 0x1016b960]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x1016b48d
mov edx, dword [esi + 0x10]
and edx, 0xfe69ffff
or edx, 0x690000
mov dword [esi + 0x10], edx
jmp 0x1016b48d
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x1016b48d
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
jmp 0x1016b48d
and dword [esi + 0x10], 0xfe00ffff
mov edx, dword [esi + 0x10]
and ecx, 0xff
and edx, 0xffff601f
shl ecx, 5
or ecx, edx
mov edx, dword [esp + 0x28]
add edx, edx
add edx, edx
mov eax, ecx
xor eax, edx
and eax, 0x1f
xor eax, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x38]
cmp byte [ebx + ecx], 0
je 0x1016b4c9
and eax, 0xfe00ffff
mov dword [esi + 0x10], eax
mov ebx, dword [esp + 0x38]
cmp dword [ebx + 0x1c], 0
je 0x1016b4f1
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, eax
jmp 0x1016b504
mov eax, 2
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, eax
jmp 0x1016b504
mov ebx, dword [esp + 0x38]
test cl, 1
je 0x1016b94f
mov ecx, dword [ebx + 0x84]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ecx]
push edx
push ebx
mov ebx, dword [esp + 0x28]
push ebx
push edx
mov edx, dword [esp + 0x44]
push edx
push 1
push 1
call dword [eax + 4]
mov edx, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x78]
mov ecx, esi
mov dword [esp + 0x28], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
lea ebx, [esi + 8]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, ebp
sar eax, 1
and eax, 1
shl eax, 0x10
and ecx, 3
or eax, ecx
add eax, eax
add eax, eax
add eax, eax
mov ecx, ebp
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 0x1016b5d8
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 eax, dword [edx]
mov ecx, dword [edi + 0x34]
mov eax, dword [ecx + eax*4]
sub eax, 0
je 0x1016b5d4
sub eax, 1
jne 0x1016b5d8
or byte [esi + 0x13], 2
jmp 0x1016b5d8
and byte [esi + 0x13], 0xfd
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax + edx*4]
mov edx, dword [edi + 0x68]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esi + 0xc]
and eax, 0xff
shl eax, 0x15
and ecx, 0xffe0
or eax, ecx
or eax, 0x2000001d
mov dword [esi + 0xc], eax
cmp dword [edi + 0x90], 0
jbe 0x1016b6e5
mov edx, dword [edi + 0x8c]
mov cl, byte [edx]
and cl, 1
mov byte [esp + 0x13], cl
je 0x1016b6e5
mov ecx, dword [ebx]
and al, 0x9f
shr ecx, 0x15
and ecx, 7
or eax, 0x380
cmp ecx, 5
mov dword [esi + 0xc], eax
ja case.0x1016b63f.0
jmp dword [ecx*4 + 0x1016b978]
mov edx, dword [esi + 0x10]
and edx, 0xfe45ffff
or edx, 0x450000
mov dword [esi + 0x10], edx
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
mov eax, dword [esi + 0x10]
and eax, 0xfe69ffff
or eax, 0x690000
mov dword [esi + 0x10], eax
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
and dword [esi + 0x10], 0xfe00ffff
and dword [esi + 0x10], 0xffff6000
jmp 0x1016b74f
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
mov eax, dword [edx + ecx*4]
movzx edx, byte [edi + 0x9a]
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + eax*4]
shl edx, 0xe
xor edx, dword [esi + 0x10]
push 7
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 0x1016b74f
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
and dh, 0x8f
or dh, 0xc
push ebx
lea eax, [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esi + 0xc], edx
call fcn.10142640
mov ecx, dword [eax]
mov ebx, dword [esp + 0x38]
xor edx, edx
test cl, 1
mov dword [esp + 0x14], ecx
je 0x1016b94f
cmp byte [esp + 0x12], dl
je 0x1016b94f
mov ecx, dword [ebx + 0x84]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ecx]
push edx
push ebx
mov ebx, dword [esp + 0x28]
push ebx
push edx
mov edx, dword [esp + 0x44]
push edx
push 1
push 1
call dword [eax + 4]
mov edx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x78]
mov ecx, esi
mov dword [esp + 0x34], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
lea ebx, [esi + 8]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
add eax, 1
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [ebx]
mov eax, ebp
sar eax, 1
and eax, 1
shl eax, 0x13
and ebp, 1
or eax, ebp
or al, 8
and ecx, 0xefffddff
shl eax, 9
or eax, ecx
mov dword [ebx], eax
cmp byte [edi + 0x98], 0
je 0x1016b843
mov dl, byte [edi + 0x99]
and eax, 0xffe1ffff
and edx, 1
shl edx, 0x14
or edx, eax
or edx, 0x10000
mov dword [ebx], edx
mov eax, dword [edi + 0x50]
mov ecx, dword [eax]
mov edx, dword [edi + 0x34]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, esi
call fcn.101305c0
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x5c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx + eax*4]
mov edx, dword [esi + 0xc]
add eax, 1
shl eax, 0x15
and eax, 0x1fe00000
and edx, 0xffe0
or eax, edx
or eax, 0x2000001d
mov dword [esi + 0xc], eax
cmp dword [edi + 0x90], 0
jbe 0x1016b89f
mov eax, dword [edi + 0x8c]
mov cl, byte [eax]
and cl, 1
mov byte [esp + 0x34], cl
je 0x1016b89f
push 7
push 0
push 0
push 0
call fcn.1006dd40
add esp, 8
push eax
push 0
jmp 0x1016b910
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 7
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 0x1016b90a
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
jmp 0x1016b919
add ecx, 1
push ecx
push 1
mov ecx, esi
push 0
call fcn.100f2ee0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x28]
and dh, 0x8f
or dh, 0xc
push ebx
lea eax, [esp + 0x3c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esi + 0xc], edx
call fcn.10142640
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x1c
ret 0xc