Function at 0x10059950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016ce08
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x95c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x968], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10059db3
mov byte [esi], bl
mov dword [ebp - 0x968], 1
cmp dword [0x1019feec], ebx
jne 0x100599ed
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1019feec], eax
cmp eax, ebx
jne 0x100599dc
mov ecx, str.Shell32.dll
call fcn.10032000
mov dword [0x1019feec], eax
cmp eax, ebx
je 0x100599ed
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1019fef0], eax
cmp dword [0x1019fef0], ebx
je 0x10059db3
mov dword [ebp - 0x968], 2
cmp byte [0x1019fde8], bl
jne 0x10059a6d
push 0x104
push 0x1019fde8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x1019fde8
call fcn.10049c40
mov eax, 0x1019fde8
dec eax
jmp 0x10059a30
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10059a30
mov ecx, dword [str.config_systemprofile]
mov dword [eax], ecx
mov edx, dword [0x10154b38]
mov dword [eax + 4], edx
mov ecx, dword [0x10154b3c]
mov dword [eax + 8], ecx
mov edx, dword [0x10154b40]
mov dword [eax + 0xc], edx
mov ecx, dword [0x10154b44]
mov dword [eax + 0x10], ecx
mov dl, byte [0x10154b48]
mov byte [eax + 0x14], dl
push ebx
call sym.EncDec.dll_IsSystemUser
test eax, eax
je 0x10059c7b
mov dword [ebp - 0x968], 4
cmp edi, 0x1a
jne 0x10059b1b
mov byte [ebp - 0x12c], bl
push 0x103
push ebx
lea eax, [ebp - 0x12b]
push eax
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x968], 5
call fcn.1004fe90
push 0x1019fde8
test eax, eax
je 0x10059acf
push str._sAppDataRoaming
lea ecx, [ebp - 0x12c]
push ecx
jmp 0x10059adb
push str._sApplication_Data
lea edx, [ebp - 0x12c]
push edx
call fcn.1010d6a8
add esp, 0xc
lea edi, [ebp - 0x12c]
call fcn.10044b00
test eax, eax
je 0x10059db3
mov ecx, edi
mov edx, esi
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10059b00
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10059dbc
cmp edi, 6
jne 0x10059b8c
mov byte [ebp - 0x444], bl
push 0x103
push ebx
lea eax, [ebp - 0x443]
push eax
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x968], edi
push 0x1019fde8
push str._sFavorites
lea ecx, [ebp - 0x444]
push ecx
call fcn.1010d6a8
add esp, 0xc
lea edi, [ebp - 0x444]
call fcn.10044b00
test eax, eax
je 0x10059db3
mov ecx, edi
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10059b71
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10059dbc
cmp edi, 0x10
jne 0x10059c01
mov byte [ebp - 0x54c], bl
push 0x103
push ebx
lea edx, [ebp - 0x54b]
push edx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x968], 7
push 0x1019fde8
push str._sDesktop
lea eax, [ebp - 0x54c]
push eax
call fcn.1010d6a8
add esp, 0xc
lea edi, [ebp - 0x54c]
call fcn.10044b00
test eax, eax
je 0x10059db3
mov ecx, edi
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10059be6
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10059dbc
cmp edi, 2
jne 0x10059db3
mov byte [ebp - 0x234], bl
push 0x103
push ebx
lea ecx, [ebp - 0x233]
push ecx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x968], 8
push 0x1019fde8
push str._sStart_MenuPrograms
lea edx, [ebp - 0x234]
push edx
call fcn.1010d6a8
add esp, 0xc
lea edi, [ebp - 0x234]
call fcn.10044b00
test eax, eax
je 0x10059db3
mov ecx, edi
mov edx, esi
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10059c60
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10059dbc
mov dword [ebp - 0x968], 9
push esi
push 0x4000
push ebx
push edi
push ebx
call dword [0x1019fef0]
test eax, eax
jne 0x10059db3
push str.LocalService_
mov ecx, esi
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x10059d82
mov byte [ebp - 0x654], bl
push 0x103
push ebx
lea eax, [ebp - 0x653]
push eax
call fcn.10116880
add esp, 0xc
mov byte [ebp - 0x33c], bl
push 0x103
push ebx
lea ecx, [ebp - 0x33b]
push ecx
call fcn.10116880
add esp, 0xc
mov byte [ebp - 0x75c], bl
push 0x103
push ebx
lea edx, [ebp - 0x75b]
push edx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x968], 0xa
lea eax, [ebp - 0x654]
push eax
lea edx, [ebp - 0x75c]
lea ecx, [ebp - 0x33c]
call fcn.1004cbc0
add esp, 4
test eax, eax
je 0x10059d82
cmp byte [ebp - 0x33c], bl
je 0x10059d82
mov byte [ebp - 0x964], bl
push 0x207
push ebx
lea ecx, [ebp - 0x963]
push ecx
call fcn.10116880
add esp, 0xc
lea edx, [ebp - 0x33c]
push edx
push str._s_
lea eax, [ebp - 0x964]
push eax
call fcn.1010d6a8
add esp, 0xc
push ebx
lea ecx, [ebp - 0x964]
push ecx
push str.LocalService_
push esi
call fcn.10047ed0
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10059dbc
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1010d699
mov esp, ebp
pop ebp
ret