Function at 0x1026d73
Capabilities:
Get common file path

Disassembly:
push 0xfac
mov eax, 0x103ed01
call fcn.01002325
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x644]
mov dword [ebp - 0xf98], eax
xor ebx, ebx
xor edi, edi
call fcn.0100a6a3
mov dword [ebp - 4], ebx
mov dword [ebp - 0xfa0], 0x10026d4
mov dword [ebp - 0xf9c], ebx
lea eax, [ebp - 0xf9c]
push eax
push 8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1026e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a2af
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01025a37
push 0x7d0
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.01024d65
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
mov ecx, esi
push 0x1027500
call dword [eax + 0x10]
lea ecx, [ebp - 0xf94]
mov byte [ebp - 4], 1
call fcn.01024cb0
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0xf8c], 0x105
jl 0x1026ef2
lea eax, [ebp - 0xf8c]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xf9c]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x1026eba
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x644]
lea ecx, [ebp - 0x644]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x638]
cmp eax, ebx
jbe 0x1026ef2
mov ecx, dword [ebp - 0x640]
movzx eax, word [ecx + eax*2 - 2]
push eax
call fcn.01003470
test eax, eax
je 0x1026ef2
mov eax, dword [ebp - 0x638]
dec eax
push eax
lea ecx, [ebp - 0x644]
call fcn.0100a325
jmp 0x1026ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a2af
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01025a37
push 0x7dc
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
call fcn.01024d65
lea ecx, [ebp - 0xf94]
call fcn.01024cb0
push ebx
lea ecx, [ebp - 0xfa0]
mov dword [ebp - 0xfa0], 0x10026d4
call fcn.0100272d
lea ecx, [ebp - 0x5b0]
call fcn.0100a6a3
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 4], 3
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0xf8c], 0x105
jl 0x1026fe4
lea eax, [ebp - 0xf8c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x1026fac
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x5b0]
lea ecx, [ebp - 0x5b0]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x5a4]
cmp eax, ebx
jbe 0x1026fe4
mov ecx, dword [ebp - 0x5ac]
movzx eax, word [ecx + eax*2 - 2]
push eax
call fcn.01003470
test eax, eax
je 0x1026fe4
mov eax, dword [ebp - 0x5a4]
dec eax
push eax
lea ecx, [ebp - 0x5b0]
call fcn.0100a325
jmp 0x1026fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a2af
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01025a37
push 0x7db
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
call fcn.01024d65
lea ecx, [ebp - 0xf94]
call fcn.01024cb0
cmp dword [0x104a04c], 0x7d6
mov byte [ebp - 0xf85], bl
jl 0x10270af
cmp edi, ebx
jl 0x10270a8
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 1
push ebx
push 0x401c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x10270a8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x51c]
call fcn.01011f55
mov eax, dword [ebp - 0x51c]
push 0xffffffffffffffff
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push 0x10274f8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
push dword [ebp - 0xf98]
lea eax, [ebp - 0x51c]
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01026b60
lea ecx, [ebp - 0x51c]
call fcn.01007e75
xor edi, edi
jmp 0x102746a
cmp edi, ebx
mov dword [ebp - 0xfb8], 0x1a
mov dword [ebp - 0xfb4], 0x21
mov dword [ebp - 0xfb0], 0x13
mov dword [ebp - 0xfac], 0x1b
mov dword [ebp - 0xfa8], 9
mov dword [ebp - 0xfa4], 0x15
mov dword [ebp - 0xf8c], ebx
jl 0x102746a
cmp dword [ebp - 0xf8c], 6
jae 0x1027228
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xf8c]
mov eax, dword [ebp + eax*4 - 0xfb8]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 1
push ebx
or eax, 0x4000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x10271a2
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x51c]
call fcn.01011f55
push dword [ebp - 0xf98]
mov byte [ebp - 4], 5
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01026b60
lea ecx, [ebp - 0x51c]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.01007e75
jmp 0x102721a
push ebx
lea ecx, [ebp - 0xf94]
call fcn.01025a37
push 0x7df
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.01024d65
push dword [esi + 8]
mov ecx, esi
call fcn.0100fa34
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0xf9c], eax
mov eax, dword [ebp - 0xf8c]
push dword [ebp + eax*4 - 0xfb8]
mov eax, dword [ebp - 0xf9c]
push 0x1017564
sub ecx, edx
push ecx
lea eax, [eax + edx*2]
push eax
call fcn.0100a5fc
add esp, 0x10
push 0xffffffffffffffff
mov ecx, esi
call fcn.0101008f
lea ecx, [ebp - 0xf94]
mov byte [ebp - 4], 3
call fcn.01024cb0
inc dword [ebp - 0xf8c]
cmp edi, ebx
jge 0x10270f9
cmp edi, ebx
jl 0x102746a
push 0x1011ef0
lea ecx, [ebp - 0x51c]
call fcn.01011f55
push dword [ebp - 0x5a4]
mov eax, dword [ebp - 0x51c]
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push dword [ebp - 0x5ac]
mov byte [ebp - 4], 7
call dword [eax + 0x10]
mov eax, dword [ebp - 0x51c]
push 0xffffffffffffffff
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push 0x10274dc
call dword [eax + 0x10]
push dword [ebp - 0x518]
lea ecx, [ebp - 0xf8c]
call fcn.01008ac0
mov edi, dword [ebp - 0xf8c]
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
mov byte [ebp - 4], 8
js 0x10272c4
mov eax, dword [ebp - 0xf98]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp - 0xf8c]
push eax
call dword [ecx + 0xc]
mov edi, eax
push dword [ebp - 0xf8c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 3
call fcn.01007e75
cmp edi, ebx
jl 0x102746a
lea ecx, [ebp - 0x51c]
call fcn.0100a6a3
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 4], 9
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 1
push ebx
push 0x401c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x1027420
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x51c]
lea ecx, [ebp - 0x51c]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x510]
cmp eax, ebx
jne 0x102735c
or eax, 0xffffffff
jmp 0x102736b
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x51c]
call fcn.01024d25
cmp eax, dword [ebp - 0x638]
jle 0x10273b7
push eax
lea ecx, [ebp - 0x51c]
call fcn.0100a325
push dword [ebp - 0xf98]
lea eax, [ebp - 0x51c]
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01026b60
mov edi, eax
jmp 0x102745f
cmp byte [ebp - 0xf85], bl
jne 0x102745f
push dword [ebp - 0x518]
lea eax, [ebp - 0x488]
push 0x10274b4
push 0x136
push eax
call fcn.0100a5fc
add esp, 0x10
push dword [0x104a1a0]
lea ecx, [ebp - 0xf84]
call fcn.0100a9ae
push ebx
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0xf84]
push 0x800003f6
push eax
mov byte [ebp - 4], 0xa
call fcn.01024e33
add esp, 0x10
lea ecx, [ebp - 0xf84]
call fcn.01025847
jmp 0x102745f
push ebx
lea ecx, [ebp - 0xf94]
call fcn.01025a37
push 0x7df
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.01024d65
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
mov ecx, esi
push 0x102748c
call dword [eax + 0x10]
lea ecx, [ebp - 0xf94]
call fcn.01024cb0
lea ecx, [ebp - 0x51c]
call fcn.01007e75
lea ecx, [ebp - 0x5b0]
call fcn.01007e75
lea ecx, [ebp - 0x644]
call fcn.01007e75
mov eax, edi
call fcn.01002362
ret 0x14