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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x40]
sub eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], 1
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], eax
call fcn.1014abf0
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
xor ebx, ebx
xor ebp, ebp
sub eax, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebp
je 0x1016b9fe
sub eax, 2
je 0x1016b9fe
sub eax, 2
je 0x1016b9fe
mov dword [esp + 0x2c], ebp
mov edx, 1
jmp 0x1016ba07
mov edx, 1
mov dword [esp + 0x2c], edx
mov eax, dword [edi + 0x24]
mov ecx, eax
shr ecx, 2
test cl, 1
je 0x1016ba1d
mov ebx, 2
mov dword [esp + 0x20], ebx
mov ecx, eax
shr ecx, 3
test cl, 1
je 0x1016ba2d
mov ebx, edx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
je 0x1016ba4b
cmp ecx, 0x10
je 0x1016ba42
mov ecx, 2
jmp 0x1016ba5f
mov byte [esp + 0x12], 1
xor ebp, ebp
jmp 0x1016ba57
shr eax, 1
movzx ebp, al
mov byte [esp + 0x12], 0
and ebp, edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
cmp byte [edi + 0xa2], 0
je 0x1016ba6c
mov dword [esp + 0x24], edx
test byte [edi + 0x24], 1
je 0x1016ba76
mov dword [esp + 0x28], edx
test cl, 1
je 0x1016bc6d
cmp byte [edi + 0x98], 0
je 0x1016bc6d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
lea ebp, [esi + 8]
and al, 0x81
or al, 1
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.100ea3e0
cmp byte [esp + 0x12], 0
je 0x1016bac1
mov edx, dword [ebp]
and dh, 0xef
or dh, 0x20
mov dword [ebp], edx
jmp 0x1016bad3
mov eax, dword [esp + 0x18]
shl eax, 0xc
xor eax, dword [ebp]
and eax, 0x3000
xor dword [ebp], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x14], 0x80
je 0x1016baee
mov eax, dword [ebp]
and ah, 0xf7
or ah, 4
mov dword [ebp], eax
mov eax, dword [ebp]
mov ecx, ebx
sar ecx, 1
and ecx, 1
shl ecx, 0x13
mov edx, ebx
and edx, 1
or ecx, edx
shl ecx, 9
and eax, 0xeffffdff
or ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x5c]
push ecx
mov ecx, dword [eax + edx*4]
mov edx, dword [edi + 0x68]
mov eax, dword [edx + ecx*4]
push 0
push eax
push 1
mov ecx, esi
call fcn.100f2e20
mov ecx, dword [edi + 0x44]
mov eax, dword [esp + 0x30]
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 + 0x34], ecx
mov ecx, dword [esp + 0x44]
and ecx, 7
mov dword [esp + 0x1c], eax
mov eax, dword [ebp]
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.0x1016bb7b.0
jmp dword [eax*4 + 0x1016c364]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x1016bbe9
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x1016bbe9
mov edx, dword [esi + 0x10]
and edx, 0xfe8dffff
or edx, 0x8d0000
mov dword [esi + 0x10], edx
jmp 0x1016bbe9
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x1016bbe9
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x1016bbe9
and dword [esi + 0x10], 0xfe00ffff
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x44]
and eax, 0xff
shl eax, 5
and edx, 0xffff601f
or eax, edx
mov dword [esp + 0x34], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.100ea390
mov ecx, dword [esp + 0x3c]
xor eax, ecx
and eax, 0x1f
xor eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x10], eax
mov edx, dword [edi + 0x38]
add esp, 8
cmp byte [ecx + edx], 0
je 0x1016bc3c
and eax, 0xfe00ffff
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x48]
cmp dword [edx + 0x1c], 0
je 0x1016bc59
push 0x10
push ebp
lea eax, [esp + 0x3c]
push eax
mov ecx, edx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x1016bc5e
mov eax, 2
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, 1
test cl, 1
mov eax, dword [edi + 0x78]
mov dword [esp + 0x1c], eax
je 0x1016c352
cmp byte [esp + 0x12], 0
je 0x1016bca5
cmp dword [edi + 0x90], 2
jbe 0x1016bcc3
mov edx, dword [edi + 0x8c]
mov eax, dword [edx]
shr eax, 2
and al, 1
mov byte [esp + 0x13], al
je 0x1016bcc3
jmp 0x1016be5b
cmp dword [edi + 0x90], edx
jbe 0x1016bcc3
mov edx, dword [edi + 0x8c]
mov eax, dword [edx]
shr eax, 1
and al, 1
mov byte [esp + 0x13], al
jne 0x1016be5b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esi + 8]
mov eax, ebx
sar eax, 1
and eax, 1
shl eax, 0x10
and ebp, 3
or eax, ebp
add eax, eax
add eax, eax
add eax, eax
and ebx, 1
or eax, ebx
shl eax, 9
and ecx, 0xef7fcd81
or eax, ecx
or eax, 0x600001
mov dword [esi + 8], eax
cmp byte [edi + 0x98], 0
je 0x1016bd3e
mov dl, byte [edi + 0x99]
and eax, 0xffe1ffff
and edx, 1
shl edx, 0x14
or edx, eax
or edx, 0x10000
mov dword [esi + 8], edx
mov eax, dword [edi + 0x50]
mov ecx, dword [eax]
mov edx, dword [edi + 0x34]
mov eax, dword [edx + ecx*4]
sub eax, 0
je 0x1016bd3a
sub eax, 1
jne 0x1016bd3e
or byte [esi + 0x13], 2
jmp 0x1016bd3e
and byte [esi + 0x13], 0xfd
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
push ebx
push 0
add eax, 1
push eax
push 2
mov ecx, esi
call fcn.100f2e20
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
mov eax, dword [edx + ecx*4 + 4]
movzx edx, byte [edi + 0x9b]
mov ecx, dword [edi + 0x34]
mov ebp, dword [ecx + eax*4]
shl edx, 0xe
xor edx, dword [esi + 0x10]
and ebx, 7
and edx, 0x4000
xor dword [esi + 0x10], edx
movzx eax, byte [edi + 0x9f]
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 [edi + 0x30]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
shl ebx, 7
and edx, 0xfffffc3f
shr ecx, 0x15
or ebx, edx
and ecx, 7
or ebx, 0x20
cmp ecx, 5
mov dword [esi + 0xc], ebx
ja case.0x1016bdc4.0
jmp dword [ecx*4 + 0x1016c37c]
and eax, 0xfe45ffff
or eax, 0x450000
jmp 0x1016bdf4
and eax, 0xfe69ffff
or eax, 0x690000
jmp 0x1016bdf4
and eax, 0xfe8dffff
or eax, 0x8d0000
jmp 0x1016bdf4
and eax, 0xfe00ffff
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call fcn.100ea390
mov edx, dword [esi + 0x10]
and ebp, 0xff
shl ebp, 5
and eax, 0x1f
or ebp, eax
and edx, 0xffff6000
or ebp, edx
mov dword [esi + 0x10], ebp
mov eax, dword [edi + 0x38]
add esp, 8
cmp byte [eax + 1], 0
je 0x1016be3d
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
call fcn.10142640
mov edx, dword [eax]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov ecx, edx
test cl, 1
je 0x1016c352
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x84]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push eax
push 1
push 2
call dword [edx + 4]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x34], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
lea ebp, [esi + 8]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
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 [ebp]
mov eax, ebx
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, ebx
and ecx, 1
or eax, ecx
shl eax, 9
and edx, 0xefffcdff
or eax, edx
mov dword [ebp], eax
cmp byte [edi + 0x98], 0
je 0x1016bf35
mov cl, byte [edi + 0x99]
and eax, 0xffe1ffff
and ecx, 1
shl ecx, 0x14
or ecx, eax
or ecx, 0x10000
mov dword [ebp], 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 0x1016bf31
sub eax, 1
jne 0x1016bf35
or byte [esi + 0x13], 2
jmp 0x1016bf35
and byte [esi + 0x13], 0xfd
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
push edx
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4]
push 0
push ecx
push 1
mov ecx, esi
call fcn.100f2e20
cmp dword [edi + 0x90], 0
jbe 0x1016bf8f
mov edx, dword [edi + 0x8c]
mov al, byte [edx]
and al, 1
mov byte [esp + 0x13], al
je 0x1016bf8f
mov ecx, dword [esp + 0x44]
push ecx
push 0
push 0
push 0
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
jmp 0x1016bffb
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]
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 eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x10], edx
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov ecx, dword [edi + 0x38]
cmp byte [ecx], 0
je 0x1016bffb
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x34]
and ah, 0x8f
or ah, 0xc
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
call fcn.10142640
mov edx, dword [eax]
mov ecx, edx
test cl, 1
mov dword [esp + 0x14], edx
je 0x1016c352
cmp byte [esp + 0x12], 0
je 0x1016c183
cmp dword [edi + 0x90], 3
jbe 0x1016c05a
mov eax, dword [edi + 0x8c]
mov edx, dword [eax]
shr edx, 3
and dl, 1
mov byte [esp + 0x13], dl
jne 0x1016c183
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
lea ebp, [esi + 8]
and ecx, 0xffffff81
or ecx, 1
mov dword [ebp], ecx
push 8
mov ecx, esi
call fcn.100ea3e0
mov edx, dword [ebp]
and dh, 0xdf
or dh, 0x10
push ebx
mov ecx, esi
mov dword [ebp], edx
call fcn.100fc410
cmp byte [edi + 0x98], 0
je 0x1016c0c8
mov al, byte [edi + 0x99]
mov ecx, dword [ebp]
and ecx, 0xffe1ffff
and eax, 1
shl eax, 0x14
or eax, ecx
or eax, 0x10000
mov dword [ebp], 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
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push eax
push 0
add ecx, 3
push ecx
push 2
mov ecx, esi
call fcn.100f2e20
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + edx*4 + 4]
movzx eax, byte [edi + 0x9b]
mov edx, dword [edi + 0x34]
mov ecx, dword [edx + ecx*4]
shl eax, 0xe
xor eax, dword [esi + 0x10]
and eax, 0x4000
xor dword [esi + 0x10], eax
movzx edx, byte [edi + 0x9f]
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]
cmp byte [eax + 1], 0
je 0x1016c151
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 0x30]
push edx
mov edx, dword [eax + 4]
push edx
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 0x1016c16c
mov eax, dword [esp + 0x44]
mov edx, dword [edi + 0x30]
push eax
mov eax, dword [edx + 4]
push eax
add ecx, 1
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
call fcn.10142640
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov ecx, edx
test cl, 1
je 0x1016c352
cmp byte [esp + 0x12], 0
je 0x1016c352
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x84]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push eax
push 1
push 2
call dword [edx + 4]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x40], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
lea ebp, [esi + 8]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
add eax, 2
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 [ebp]
mov eax, ebx
sar eax, 1
and eax, 1
shl eax, 0x13
and ebx, 1
or eax, ebx
or al, 8
and ecx, 0xefffddff
shl eax, 9
or eax, ecx
mov dword [ebp], eax
cmp byte [edi + 0x98], 0
je 0x1016c250
mov dl, byte [edi + 0x99]
and eax, 0xffe1ffff
and edx, 1
shl edx, 0x14
or edx, eax
or edx, 0x10000
mov dword [ebp], 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 ebx, dword [esp + 0x44]
mov edx, dword [ecx + eax*4]
push ebx
push 0
add edx, 1
push edx
push 1
mov ecx, esi
call fcn.100f2e20
cmp dword [edi + 0x90], 1
jbe 0x1016c2a3
mov eax, dword [edi + 0x8c]
mov ecx, dword [eax]
shr ecx, 1
and cl, 1
mov byte [esp + 0x44], cl
je 0x1016c2a3
push ebx
push 0
push 0
push 0
call fcn.1006dd40
add esp, 8
push eax
push 0
jmp 0x1016c313
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 ebx
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 0x1016c30d
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 0x1016c31c
add ecx, 1
push ecx
push 1
mov ecx, esi
push 0
call fcn.100f2ee0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x40]
and dh, 0x8f
or dh, 0xc
push ebp
lea eax, [esp + 0x48]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x4c]
push eax
mov dword [esi + 0xc], edx
call fcn.10142640
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x28
ret 0x10