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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.1014abf0
mov ebp, dword [edi + 0x24]
mov esi, dword [ebx + 0x90]
shr ebp, 1
xor ecx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x78]
and ebp, 1
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ecx
jbe 0x10178f55
add eax, 1
shl eax, 0x15
mov dword [esp + 0x1c], eax
test byte [esp + 0x10], 1
je 0x10178f3c
cmp ecx, 0x3f
ja 0x10178dde
cmp ecx, dword [edi + 0x90]
jae 0x10178dde
mov edx, dword [edi + 0x8c]
mov eax, ecx
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
shr eax, 5
test dword [edx + eax*4], ebx
setne al
test al, al
jne 0x10178f34
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
and ecx, 0xff7fcf81
mov eax, ebp
and eax, 3
shl eax, 0xc
or eax, ecx
mov ecx, dword [esi + 0xc]
and ecx, 0xffe0
and edx, 0x1fe00000
or edx, ecx
or eax, 0x600001
mov dword [esi + 8], eax
or edx, 0x2000001e
mov dword [esi + 0xc], edx
mov ecx, dword [edi + 0x44]
mov ebp, dword [edi + 0x50]
add ecx, ebx
mov ecx, dword [ebp + ecx*4]
mov ebp, dword [edi + 0x34]
mov ecx, dword [ebp + ecx*4]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edi + 0x9c]
shl ecx, 0xe
xor ecx, dword [esi + 0x10]
shr eax, 0x15
and ecx, 0x4000
xor dword [esi + 0x10], ecx
movzx ecx, byte [edi + 0x9d]
mov ebp, dword [esi + 0x10]
shl ecx, 0xd
xor ecx, ebp
and ecx, 0x2000
xor ecx, ebp
mov dword [esi + 0x10], ecx
mov ebp, dword [edi + 0x30]
mov ebp, dword [ebp + ebx*4]
and edx, 0xffffffbf
and eax, 7
or edx, 0x3a0
cmp eax, 5
mov dword [esi + 0xc], edx
ja case.0x10178e87.0
jmp dword [eax*4 + 0x10179480]
and ecx, 0xfe45ffff
or ecx, 0x450000
jmp 0x10178ebe
and ecx, 0xfe69ffff
or ecx, 0x690000
jmp 0x10178ebe
and ecx, 0xfe8dffff
or ecx, 0x8d0000
jmp 0x10178ebe
and ecx, 0xfe00ffff
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov edx, ecx
and eax, 0xff
shl eax, 5
and edx, 0xffff601f
or eax, edx
lea ecx, [ebp*4]
xor ecx, eax
and ecx, 0x1f
xor ecx, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 0x38]
cmp byte [ebx + eax], 0
je 0x10178efd
and ecx, 0xfe00ffff
mov dword [esi + 0x10], ecx
mov ebx, dword [esp + 0x38]
cmp dword [ebx + 0x1c], 0
je 0x10178f25
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x10178f38
mov ebp, dword [esp + 0x20]
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x10178f38
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x1c], 0x200000
add ecx, 1
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
jb 0x10178da3
cmp dword [edi + 0xa8], 0
jne 0x10179089
cmp dword [edi + 0xac], 0
jne 0x10179089
cmp dword [edi + 0xb0], 0
jne 0x10179089
cmp dword [edi + 0xb4], 0xf
jne 0x10179089
test byte [esp + 0x10], 1
je 0x10179394
mov eax, dword [edi + 0xa0]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x84]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0xa4]
push eax
push 0
push 1
push 5
push 4
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x38], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
shl ebp, 0xc
xor ebp, dword [esi + 8]
push 0
and ebp, 0x3000
xor dword [esi + 8], ebp
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
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
mov edx, dword [edi + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [edx + ebp*4]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
push 0
push eax
add ecx, ebp
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + eax*4]
push edx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [edi + 0x38]
cmp byte [eax + ebp], 0
je 0x1017905b
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
and dh, 0x8f
or dh, 0xc
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x38]
mov dword [esi + 0x14], ecx
push eax
mov ecx, ebx
mov dword [esi + 0xc], edx
call fcn.10142640
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x10179394
test byte [esp + 0x10], 1
je 0x10179394
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, 0xef7fff81
or eax, 0x600201
mov dword [esi + 8], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
and eax, 0xff
and ecx, 0xffe0
shl eax, 0x15
or eax, ecx
or eax, 0x20000002
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0x44]
add edx, dword [esp + 0x34]
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x38]
and eax, 0xfffffc3f
or al, 0x20
shr ecx, 0x15
and ecx, 7
cmp ecx, 5
mov dword [esi + 0xc], eax
ja case.0x10179108.0
jmp dword [ecx*4 + 0x10179498]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x10179162
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x10179162
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x10179162
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x10179162
and dword [esi + 0x10], 0xfe00ffff
mov ecx, dword [esp + 0x10]
and ecx, 0xff
lea eax, [edx*4]
mov edx, dword [esi + 0x10]
shl ecx, 5
and eax, 0x1f
or ecx, eax
and edx, 0xffff6000
or ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x34]
cmp byte [ecx + eax], 0
je 0x101791a5
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
cmp dword [ebx + 0x1c], 0
je 0x101791c1
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x101791c6
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x10179394
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 0xb0]
and eax, 0xf
shl eax, 4
and ecx, 0xf
or eax, ecx
mov ecx, dword [edi + 0xb4]
shl eax, 4
and edx, 0xf
or eax, edx
test cl, 1
mov dword [esp + 0x34], eax
jne 0x1017920d
or ah, 0x10
mov dword [esp + 0x34], eax
test cl, 2
jne 0x10179219
or ah, 0x20
mov dword [esp + 0x34], eax
test cl, 4
jne 0x10179225
or ah, 0x40
mov dword [esp + 0x34], eax
test cl, 8
jne 0x10179231
or ah, 0x80
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
and ecx, 0xffffff81
or ecx, 1
mov dword [esi + 8], ecx
push 1
mov ecx, esi
call fcn.100ea3e0
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
and edx, 0xefffffff
push 1
or dh, 2
push 2
push eax
push 2
mov ecx, esi
mov dword [esi + 8], edx
call fcn.100f2e20
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x34]
and dh, 0xfc
or dl, 0xe0
mov dword [esi + 0x14], ecx
mov dword [esi + 0xc], edx
cmp dword [ebx + 0x1c], 0
je 0x1017929d
push 0x10
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x101792a2
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x10179394
mov eax, dword [edi + 0xa0]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x84]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0xa4]
push eax
push 0
push 1
push 5
push 4
call dword [edx + 0x14]
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]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
shl ebp, 0xc
xor ebp, dword [esi + 8]
push 2
and ebp, 0x3000
xor dword [esi + 8], ebp
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]
mov ecx, dword [esi + 0xc]
and eax, 0xff
shl eax, 0x15
and ecx, 0xffe0
push 0
or eax, ecx
or eax, 0x20000009
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x34]
and ah, 0x8f
or ah, 0xc
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
cmp dword [ebx + 0x1c], 0
je 0x1017938b
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10179390
mov eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
test cl, 1
je 0x10179445
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x16], 4
je 0x10179455
cmp dword [edi + 0xb4], 0
je 0x10179469
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
lea ebp, [esi + 8]
and ecx, 0xff7fff81
or ecx, 0x600001
push 0
push 0
mov dword [ebp], ecx
call fcn.1006dd40
mov edx, dword [esi + 0xc]
and eax, 0xff
shl eax, 0x15
and edx, 0xffe0
or eax, edx
or eax, 0x2000001c
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4 + 0x10]
add esp, 8
push 7
push 0
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
push ebp
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
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
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x1c
ret 0xc