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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.1014abf0
mov esi, dword [ebx + 0x90]
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
xor edx, edx
cmp eax, 8
mov ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], edx
je 0x10173aeb
cmp eax, 0x10
je 0x10173ac0
mov dword [esp + 0x10], 2
jmp 0x10173b0f
mov eax, dword [edi + 0x94]
cmp eax, 0x5e
mov ecx, 2
mov dword [esp + 0x14], 8
mov dword [esp + 0x28], ecx
jl 0x10173ae1
cmp eax, 0x60
jle 0x10173ae5
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
jmp 0x10173b0f
mov eax, dword [edi + 0x94]
cmp eax, 0x5e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
jl 0x10173b03
cmp eax, 0x60
jle 0x10173b0b
mov dword [esp + 0x10], 2
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x44]
xor eax, eax
cmp ebp, edx
mov dword [esp + 0x1c], eax
jbe 0x10173cea
test byte [esp + 0x10], 1
je 0x10173ccb
mov ecx, dword [edi + 0x98]
imul ecx, eax
cmp ecx, 0x3f
ja 0x10173b65
cmp ecx, dword [edi + 0x90]
jae 0x10173b65
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 0x10173cc7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
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 + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esi + 0xc]
and eax, 0xffe0
shl ecx, 0x15
shl edx, 0xc
xor edx, dword [ebp]
and ecx, 0x1fe00000
or ecx, eax
and edx, 0x3000
xor dword [ebp], edx
or ecx, 0x2000001e
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x44]
add eax, dword [esp + 0x1c]
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 + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp]
mov dword [esp + 0x30], 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.0x10173c2b.0
jmp dword [edx*4 + 0x101741d0]
and eax, 0xfe45ffff
or eax, 0x450000
jmp 0x10173c5b
and eax, 0xfe69ffff
or eax, 0x690000
jmp 0x10173c5b
and eax, 0xfe8dffff
or eax, 0x8d0000
jmp 0x10173c5b
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 + 0x30]
mov dword [esi + 0x10], eax
add edx, edx
add edx, edx
mov eax, ecx
xor eax, edx
mov edx, dword [esp + 0x1c]
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 0x10173ca1
and eax, 0xfe00ffff
mov dword [esi + 0x10], eax
mov ebx, dword [esp + 0x48]
cmp dword [ebx + 0x1c], 0
je 0x10173cbe
push 0x10
push ebp
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10173cc3
mov eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x98]
mov ebp, dword [esp + 0x44]
add dword [esp + 0x18], ecx
add eax, 1
cmp eax, ebp
mov dword [esp + 0x1c], eax
jb 0x10173b21
xor edx, edx
cmp dword [edi + 0xc], 8
jne 0x10173d07
cmp eax, 3
jae 0x10173d07
mov ecx, 3
sub ecx, eax
imul ecx, dword [edi + 0x98]
add dword [esp + 0x18], ecx
cmp dword [edi + 0xa8], edx
jne 0x10173e18
cmp dword [edi + 0xac], edx
jne 0x10173e18
cmp dword [edi + 0xb0], edx
jne 0x10173e18
cmp dword [edi + 0xb4], 0xf
jne 0x10173e18
test byte [esp + 0x10], 1
je 0x101741b9
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 + 0x1c]
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x48], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
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 + 0x24]
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 [esp + 0x20]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x5c]
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx + eax*4]
push 0
push edx
push 1
mov ecx, esi
call fcn.100f2e20
mov ecx, dword [edi + 0x44]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x50]
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + eax*4]
push 0
push edx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x48]
and ch, 0x8f
or ch, 0xc
push ebp
lea edx, [esp + 0x48]
push edx
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
mov ecx, ebx
call fcn.10142640
mov eax, dword [eax]
jmp 0x101740f7
test byte [esp + 0x10], 1
je 0x101741b9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x24]
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]
and eax, 0xfffffc3f
add edx, ebp
mov ebp, dword [edi + 0x50]
mov edx, dword [ebp + edx*4]
mov ebp, dword [edi + 0x34]
mov edx, dword [ebp + edx*4]
or al, 0x20
shr ecx, 0x15
and ecx, 7
cmp ecx, 5
mov dword [esi + 0xc], eax
ja case.0x10173e83.0
jmp dword [ecx*4 + 0x101741e8]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x10173edd
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x10173edd
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x10173edd
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x10173edd
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 0x10173f10
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10173f15
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x101741b9
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]
and ecx, 0xf
shl ebp, 4
or ebp, ecx
test al, 1
mov ecx, 2
jne 0x10173f67
or ebp, 0x1000
cmp dword [edi + 0x98], ecx
jne 0x10173f67
sub dword [esp + 0x14], ecx
test al, 2
jne 0x10173f7d
or ebp, 0x2000
cmp dword [edi + 0x98], ecx
jne 0x10173f7d
sub dword [esp + 0x14], ecx
test al, 4
jne 0x10173f93
or ebp, 0x4000
cmp dword [edi + 0x98], ecx
jne 0x10173f93
sub dword [esp + 0x14], ecx
test al, 8
jne 0x10173fa9
or ebp, 0x8000
cmp dword [edi + 0x98], ecx
jne 0x10173fa9
sub dword [esp + 0x14], ecx
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 + 0x24]
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 0x1017400e
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10174013
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x101741b9
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 + 0x1c]
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [edx + 0x14]
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 + 0x2c]
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 + 0x24]
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 [esp + 0x20]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x5c]
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x68]
mov edx, dword [ecx + eax*4]
push 0
push edx
push 1
mov ecx, esi
call fcn.100f2e20
mov eax, dword [esp + 0x20]
push eax
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 edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x44]
and dh, 0x8f
or dh, 0xc
mov dword [esi + 0x14], ecx
mov dword [esi + 0xc], edx
cmp dword [ebx + 0x1c], 0
je 0x101740f2
push 0x10
push ebp
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x101740f7
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x101741b9
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x16], 4
je 0x101741b9
cmp dword [edi + 0x98], 1
jne 0x101741b9
cmp dword [edi + 0xb4], 0
je 0x101741b9
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
cmp dword [ebx + 0x1c], 0
je 0x101741b0
push 0x10
push ebp
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x101741b5
mov eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x2c
ret 0xc