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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.1014abf0
mov ecx, dword [edi + 0xc]
mov esi, dword [ebx + 0x90]
mov dword [esp + 0x30], eax
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x94]
cmp eax, 0x84
mov dword [esp + 0x14], 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0
jl 0x10174d7c
cmp eax, 0x86
jg 0x10174d7c
mov dword [esp + 0x24], 0xc
mov edx, 2
jmp 0x10174d85
mov edx, 2
mov dword [esp + 0x10], edx
cmp ecx, 8
je 0x10174d99
mov ecx, dword [esp + 0x10]
and ecx, 0xfffffffe
or ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x10174da1
mov dword [esp + 0x14], 5
xor eax, eax
cmp dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
jbe 0x10174f6c
test byte [esp + 0x10], 1
je 0x10174f4d
mov ecx, dword [edi + 0x98]
imul ecx, eax
cmp ecx, 0x3f
ja 0x10174df5
cmp ecx, dword [edi + 0x90]
jae 0x10174df5
mov eax, dword [edi + 0x8c]
mov edx, ecx
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
shr edx, 5
test dword [eax + edx*4], ebp
setne al
test al, al
jne 0x10174f48
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x28]
lea ebp, [esi + 8]
and al, 0x81
or al, 1
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.100ea3e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
and byte [ebp + 1], 0xcf
add ecx, eax
mov eax, dword [esi + 0xc]
and eax, 0xffe0
shl ecx, 0x15
and ecx, 0x1fe00000
or ecx, eax
or ecx, 0x2000001e
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x44]
add eax, dword [esp + 0x18]
mov ebx, dword [edi + 0x50]
mov eax, dword [ebx + eax*4]
mov ebx, dword [edi + 0x34]
mov eax, dword [ebx + eax*4]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0x9c]
shl eax, 0xe
xor eax, dword [esi + 0x10]
shr edx, 0x15
and eax, 0x4000
xor dword [esi + 0x10], eax
movzx eax, byte [edi + 0x9d]
mov ebx, dword [esi + 0x10]
shl eax, 0xd
xor eax, ebx
and eax, 0x2000
and ecx, 0xffffffbf
xor eax, ebx
and edx, 7
or ecx, 0x3a0
cmp edx, 5
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
ja case.0x10174eac.0
jmp dword [edx*4 + 0x1017542c]
and eax, 0xfe45ffff
or eax, 0x450000
jmp 0x10174edc
and eax, 0xfe69ffff
or eax, 0x690000
jmp 0x10174edc
and eax, 0xfe8dffff
or eax, 0x8d0000
jmp 0x10174edc
and eax, 0xfe00ffff
mov ecx, dword [esp + 0x10]
mov edx, eax
and ecx, 0xff
and edx, 0xffff601f
shl ecx, 5
or ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
add edx, edx
add edx, edx
mov eax, ecx
xor eax, edx
mov edx, dword [esp + 0x18]
and eax, 0x1f
xor eax, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x38]
cmp byte [edx + ecx], 0
je 0x10174f22
and eax, 0xfe00ffff
mov dword [esi + 0x10], eax
mov ebx, dword [esp + 0x44]
cmp dword [ebx + 0x1c], 0
je 0x10174f3f
push 0x10
push ebp
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10174f44
mov eax, 2
mov dword [esp + 0x10], eax
mov edx, 2
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x98]
add dword [esp + 0x1c], ecx
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
jb 0x10174db1
cmp dword [edi + 0xa8], 0
jne 0x10175083
cmp dword [edi + 0xac], 0
jne 0x10175083
cmp dword [edi + 0xb0], 0
jne 0x10175083
cmp dword [edi + 0xb4], 0xf
jne 0x10175083
test byte [esp + 0x10], 1
je 0x10175415
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
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push 1
push 1
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [edx + 0x10]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x44], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x28]
lea ebp, [esi + 8]
and al, 0xb1
or al, 0x31
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.100ea3e0
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
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 0
push ecx
push 1
mov ecx, esi
call fcn.100f2e20
mov edx, dword [edi + 0x44]
add edx, dword [esp + 0x40]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + edx*4]
mov edx, dword [edi + 0x34]
mov eax, dword [edx + ecx*4]
push 0
push 0
push eax
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x44]
and dh, 0x8f
or dh, 0xc
push ebp
lea eax, [esp + 0x44]
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 0x10175367
test byte [esp + 0x10], 1
je 0x10175415
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
and eax, 0xff
and edx, 0xffe0
shl eax, 0x15
or eax, edx
and ecx, 0xef7fff81
or eax, 0x20000002
mov dword [esi + 0xc], eax
or ecx, 0x600201
mov dword [esi + 8], ecx
mov edx, dword [edi + 0x44]
add edx, dword [esp + 0x40]
mov ebp, dword [edi + 0x50]
mov edx, dword [ebp + edx*4]
mov ebp, dword [edi + 0x34]
mov edx, dword [ebp + edx*4]
and eax, 0xfffffc3f
or al, 0x20
shr ecx, 0x15
and ecx, 7
cmp ecx, 5
mov dword [esi + 0xc], eax
ja case.0x101750f0.0
jmp dword [ecx*4 + 0x10175444]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x1017514a
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x1017514a
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x1017514a
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x1017514a
and dword [esi + 0x10], 0xfe00ffff
mov ecx, dword [esi + 0x10]
and edx, 0xff
shl edx, 5
and ecx, 0xffff6000
or edx, ecx
mov dword [esi + 0x10], edx
cmp dword [ebx + 0x1c], 0
je 0x1017517d
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10175182
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
mov edx, 2
je 0x10175415
mov ebp, dword [edi + 0xa8]
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0xb0]
and ebp, 0xf
shl ebp, 4
and eax, 0xf
or ebp, eax
mov eax, dword [edi + 0xb4]
shl ebp, 4
and ecx, 0xf
or ebp, ecx
test al, 1
jne 0x101751d4
or ebp, 0x1000
cmp dword [edi + 0x98], edx
jne 0x101751d4
sub dword [esp + 0x14], edx
test al, 2
jne 0x101751ea
or ebp, 0x2000
cmp dword [edi + 0x98], edx
jne 0x101751ea
sub dword [esp + 0x14], edx
test al, 4
jne 0x10175200
or ebp, 0x4000
cmp dword [edi + 0x98], edx
jne 0x10175200
sub dword [esp + 0x14], edx
test al, 8
jne 0x10175216
or ebp, 0x8000
cmp dword [edi + 0x98], edx
jne 0x10175216
sub dword [esp + 0x14], edx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
and al, 0x81
or al, 1
push 1
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100ea3e0
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
and ecx, 0xefffffff
or ch, 2
push 1
push 2
push edx
push 2
mov dword [esi + 8], ecx
mov ecx, esi
call fcn.100f2e20
mov eax, dword [esi + 0xc]
and ah, 0xfc
or al, 0xe0
mov dword [esi + 0x14], ebp
mov dword [esi + 0xc], eax
cmp dword [ebx + 0x1c], 0
je 0x1017527b
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10175280
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x10175415
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
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push 1
push 1
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [edx + 0x10]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x40], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x28]
lea ebp, [esi + 8]
and al, 0xb1
or al, 0x31
push ecx
mov ecx, esi
mov dword [ebp], eax
call fcn.100ea3e0
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
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 0
push ecx
push 1
mov ecx, esi
call fcn.100f2e20
push 0
push 0
push 0
push 0
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 + 0x40]
and ah, 0x8f
or ah, 0xc
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
cmp dword [ebx + 0x1c], 0
je 0x1017535e
push 0x10
push ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10175363
mov eax, 2
mov dword [esp + 0x10], eax
test byte [esp + 0x10], 1
je 0x10175415
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x16], 4
je 0x10175415
cmp dword [edi + 0x98], 1
jne 0x10175415
cmp dword [edi + 0xb4], 0
je 0x10175415
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]
add edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4 - 4]
add esp, 8
push 7
push 0
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
push ebp
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.10142640
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x28
ret 0xc