Function at 0x1017d35
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1024abc
call fcn.0101d5b8
sub esp, 0x18
mov eax, dword [0x1029044]
push esi
push edi
mov esi, 0x1029044
cmp eax, esi
mov edi, ecx
mov dword [ebp - 0x24], edi
je 0x1017d74
test byte [eax + 0x1c], 4
je 0x1017d74
push 0x1002154
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
mov eax, dword [0x1029044]
cmp dword [edi + 0x5c], 1
jne 0x101825d
mov ecx, dword [edi + 0x54]
mov ecx, dword [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, 0x7fffbffb
add ecx, 0x80004005
cmp eax, esi
push ebx
mov ebx, ecx
je 0x1017dbf
test byte [eax + 0x1c], 8
je 0x1017dbf
cmp byte [eax + 0x19], 4
jb 0x1017dbf
push ebx
push 0x1002154
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
test ebx, ebx
jl 0x1018246
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x1c]
mov ebx, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1017e0e
test byte [eax + 0x1c], 8
je 0x1017e0e
cmp byte [eax + 0x19], 4
jb 0x1017e0e
push ebx
push 0x1002154
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [0x1029044]
test ebx, ebx
jl 0x1018246
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
push 0x1029278
lea ecx, [ebp - 0x10]
call fcn.0101e4ea
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01003ef0
push eax
push 0
push 0
push 0xd
push dword [edi + 4]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1017e7c
test byte [eax + 0x1c], 8
je 0x1017e7c
cmp byte [eax + 0x19], 4
jb 0x1017e7c
push dword [ebp - 0x14]
push 0x1002154
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
cmp dword [ebp - 0x14], 0
jl 0x1017ee0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2730
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1017ee0
test byte [ecx + 0x1c], 8
je 0x1017ee0
cmp byte [ecx + 0x19], 4
jb 0x1017ee0
push eax
push 0x1002154
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003ef0
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0x27
push dword [eax + 4]
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1017f25
test byte [eax + 0x1c], 8
je 0x1017f25
cmp byte [eax + 0x19], 4
jb 0x1017f25
push dword [ebp - 0x14]
push 0x1002154
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
cmp dword [ebp - 0x14], 0
jl 0x1017f89
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2731
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1017f89
test byte [ecx + 0x1c], 8
je 0x1017f89
cmp byte [ecx + 0x19], 4
jb 0x1017f89
push eax
push 0x1002154
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003ef0
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0xe
push dword [eax + 4]
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1017fce
test byte [eax + 0x1c], 8
je 0x1017fce
cmp byte [eax + 0x19], 4
jb 0x1017fce
push dword [ebp - 0x14]
push 0x1002154
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
cmp dword [ebp - 0x14], 0
jl 0x1018032
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2732
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1018032
test byte [ecx + 0x1c], 8
je 0x1018032
cmp byte [ecx + 0x19], 4
jb 0x1018032
push eax
push 0x1002154
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003ef0
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0x35
push dword [eax + 4]
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1018077
test byte [eax + 0x1c], 8
je 0x1018077
cmp byte [eax + 0x19], 4
jb 0x1018077
push dword [ebp - 0x14]
push 0x1002154
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
cmp dword [ebp - 0x14], 0
jl 0x10180db
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2733
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x10180db
test byte [ecx + 0x1c], 8
je 0x10180db
cmp byte [ecx + 0x19], 4
jb 0x10180db
push eax
push 0x1002154
push 0x1f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003ef0
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0x36
push dword [eax + 4]
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1018120
test byte [eax + 0x1c], 8
je 0x1018120
cmp byte [eax + 0x19], 4
jb 0x1018120
push dword [ebp - 0x14]
push 0x1002154
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
cmp dword [ebp - 0x14], 0
jl 0x1018184
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2734
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1018184
test byte [ecx + 0x1c], 8
je 0x1018184
cmp byte [ecx + 0x19], 4
jb 0x1018184
push eax
push 0x1002154
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003ef0
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0x37
push dword [eax + 4]
call edi
mov edi, eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x10181c6
test byte [eax + 0x1c], 8
je 0x10181c6
cmp byte [eax + 0x19], 4
jb 0x10181c6
push edi
push 0x1002154
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0101401c
test edi, edi
mov edi, dword [ebp - 0x10]
jl 0x1018229
push edi
lea ecx, [ebp - 0x18]
call fcn.0101720a
push 0x2735
lea ecx, [ebp - 0x1c]
call fcn.01015c7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x24]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x1018229
test byte [ecx + 0x1c], 8
je 0x1018229
cmp byte [ecx + 0x19], 4
jb 0x1018229
push eax
push 0x1002154
push 0x23
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
lea ecx, [edi - 0x10]
call fcn.01003026
push dword [ebp - 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x1c]
call edi
mov eax, dword [0x1029044]
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
pop ebx
je 0x101825d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x1029044]
pop edi
cmp eax, esi
pop esi
je 0x101827b
test byte [eax + 0x1c], 4
je 0x101827b
push 0x1002154
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret