Function at 0x477e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a251
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x48], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x24], 7
mov dword [edi + 0x20], 0
mov word [edi + 0x10], cx
xor eax, eax
mov dword [edi + 0x3c], 7
mov dword [edi + 0x38], ecx
mov dword [ebp - 4], ecx
mov word [edi + 0x28], ax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 1
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
call fcn.004c3a30
mov dword [edi + 0x40], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 0
mov byte [ebp - 4], 2
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
call fcn.004b90e0
push 0
push 0
push 0
push str.SoftwareSynapticsSynTPEnh
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004bcca0
test eax, eax
je 0x477ef3
push 0
lea eax, [edi + 4]
push eax
push eax
push str.MultipleProfiles
lea ecx, [ebp - 0x40]
call fcn.004cbcf0
push 0
lea eax, [edi + 8]
push eax
push eax
push str.AutoProfile
lea ecx, [ebp - 0x40]
call fcn.004cbcf0
lea eax, [ebp - 0x10]
push eax
call fcn.004c7750
add esp, 4
lea ecx, [ebp - 0x44]
xor eax, eax
cmp dword [ebp - 0x10], eax
push 0
push 0
push 0
push str.SoftwareSynapticsSynTPInstall
setne al
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0xc], eax
call fcn.004bcca0
test eax, eax
je 0x477f9f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.004cf600
add esp, 0xc
mov dword [ebp + 8], 0x208
lea eax, [ebp + 8]
lea ecx, [ebp - 0x40]
push 0
push 0
push eax
lea eax, [ebp - 0x250]
push eax
push str.ProgDir
call fcn.004cbe60
cmp word [ebp - 0x250], 0
jne 0x477f75
xor ecx, ecx
jmp 0x477f8f
lea ecx, [ebp - 0x250]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477f80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x250]
push eax
lea ecx, [edi + 0x10]
call fcn.0040a410
push 0
push 0x1a
lea eax, [ebp - 0x458]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x477ffe
cmp word [ebp - 0x458], 0
jne 0x477fc4
xor ecx, ecx
jmp 0x477fdf
lea ecx, [ebp - 0x458]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477fd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x458]
push eax
lea ecx, [edi + 0x28]
call fcn.0040a410
push 0xa
push 0x525170
lea ecx, [edi + 0x28]
call fcn.00433830
push 0x50f8e4
push 0x523c6c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004c8bc0
add esp, 0x10
cmp dword [eax + 0x10], 0
setne al
cmp dword [ebp - 0x14], 8
mov byte [ebp + 0xb], al
jb 0x478034
push dword [ebp - 0x28]
call fcn.004cf489
mov al, byte [ebp + 0xb]
add esp, 4
test al, al
je 0x478085
push 1
push 0x50f8e4
lea ecx, [edi + 0x28]
call fcn.00433830
push 0x50f8e4
push 0x523c6c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004c8bc0
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 4
call fcn.004336a0
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 3
jb 0x478085
push dword [ebp - 0x28]
call fcn.004cf489
add esp, 4
cmp dword [edi + 0x38], 0
je 0x4780ce
mov eax, dword [edi + 0x4c]
sub eax, 0
je 0x4780af
dec eax
jne 0x4780ce
xor ecx, ecx
mov eax, 0xa
cmp word [str.Profiles_], cx
cmove eax, ecx
push eax
push str.Profiles_
jmp 0x4780c6
xor ecx, ecx
mov eax, 5
cmp word [str.OSD_], cx
cmove eax, ecx
push eax
push str.OSD_
lea ecx, [edi + 0x28]
call fcn.00433830
mov ecx, edi
call fcn.00478260
lea ecx, [ebp - 0x44]
mov dword [edi], 0
mov byte [ebp - 4], 2
call fcn.004b93f0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4