Function at 0x974420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb12da0
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x95c
mov eax, dword [0xb196ec]
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 0x974892
mov byte [esi], bl
mov dword [ebp - 0x968], 1
cmp dword [0xbfe5d4], ebx
jne 0x9744bd
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0xbfe5d4], eax
cmp eax, ebx
jne 0x9744ac
mov ecx, str.Shell32.dll
call fcn.0094c620
mov dword [0xbfe5d4], eax
cmp eax, ebx
je 0x9744bd
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xbfe5d8], eax
cmp dword [0xbfe5d8], ebx
je 0x974892
mov dword [ebp - 0x968], 2
cmp byte [0xbfe4d0], bl
jne 0x97453d
push 0x104
push 0xbfe4d0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0xbfe4d0
call fcn.00960910
mov eax, 0xbfe4d0
dec eax
jmp 0x974500
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x974500
mov ecx, dword [str.config_systemprofile]
mov dword [eax], ecx
mov edx, dword [0xaec9c0]
mov dword [eax + 4], edx
mov ecx, dword [0xaec9c4]
mov dword [eax + 8], ecx
mov edx, dword [0xaec9c8]
mov dword [eax + 0xc], edx
mov ecx, dword [0xaec9cc]
mov dword [eax + 0x10], ecx
mov dl, byte [0xaec9d0]
mov byte [eax + 0x14], dl
xor ecx, ecx
call fcn.009790d0
test eax, eax
je 0x97475b
mov dword [ebp - 0x968], 4
cmp edi, 0x1a
jne 0x9745eb
mov byte [ebp - 0x12c], bl
push 0x103
push ebx
lea eax, [ebp - 0x12b]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x968], 5
call fcn.00968d70
push 0xbfe4d0
test eax, eax
je 0x9745a0
push str._sAppDataRoaming
lea ecx, [ebp - 0x12c]
push ecx
jmp 0x9745ac
push str._sApplication_Data
lea edx, [ebp - 0x12c]
push edx
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x12c]
call fcn.0095a450
test eax, eax
je 0x974892
lea ecx, [ebp - 0x12c]
mov edx, esi
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x9745d0
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x97489b
cmp edi, 6
jne 0x974660
mov byte [ebp - 0x444], bl
push 0x103
push ebx
lea eax, [ebp - 0x443]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x968], edi
push 0xbfe4d0
push str._sFavorites
lea ecx, [ebp - 0x444]
push ecx
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x444]
call fcn.0095a450
test eax, eax
je 0x974892
lea ecx, [ebp - 0x444]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x974645
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x97489b
cmp edi, 0x10
jne 0x9746db
mov byte [ebp - 0x54c], bl
push 0x103
push ebx
lea edx, [ebp - 0x54b]
push edx
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x968], 7
push 0xbfe4d0
push str._sDesktop
lea eax, [ebp - 0x54c]
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x54c]
call fcn.0095a450
test eax, eax
je 0x974892
lea ecx, [ebp - 0x54c]
mov edx, esi
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x9746c0
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x97489b
cmp edi, 2
jne 0x974892
mov byte [ebp - 0x234], bl
push 0x103
push ebx
lea ecx, [ebp - 0x233]
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x968], 8
push 0xbfe4d0
push str._sStart_MenuPrograms
lea edx, [ebp - 0x234]
push edx
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0095a450
test eax, eax
je 0x974892
lea ecx, [ebp - 0x234]
mov edx, esi
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x974740
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x97489b
mov dword [ebp - 0x968], 9
push esi
push 0x4000
push ebx
push edi
push ebx
call dword [0xbfe5d8]
test eax, eax
jne 0x974892
push ebx
push 0xadb5b8
push esi
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x974861
mov byte [ebp - 0x654], bl
push 0x103
push ebx
lea eax, [ebp - 0x653]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov byte [ebp - 0x33c], bl
push 0x103
push ebx
lea ecx, [ebp - 0x33b]
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov byte [ebp - 0x75c], bl
push 0x103
push ebx
lea edx, [ebp - 0x75b]
push edx
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x968], 0xa
lea eax, [ebp - 0x654]
push eax
lea edx, [ebp - 0x75c]
lea ecx, [ebp - 0x33c]
call fcn.00964ae0
add esp, 4
test eax, eax
je 0x974861
cmp byte [ebp - 0x33c], bl
je 0x974861
mov byte [ebp - 0x964], bl
push 0x207
push ebx
lea ecx, [ebp - 0x963]
push ecx
call fcn.00a7ffb0
add esp, 0xc
lea edx, [ebp - 0x33c]
push edx
push 0xadb5c8
lea eax, [ebp - 0x964]
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [ebp - 0x964]
push ecx
push 0xadb5b8
push esi
call fcn.0095e130
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x97489b
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.00a78f21
mov esp, ebp
pop ebp
ret