Function at 0x51a130
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5794d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
xor esi, esi
xor ecx, ecx
mov eax, str.configinstalldesktopitem
mov dword [esp + 0x18], esi
call fcn.00418fb0
cmp eax, esi
je 0x51a2ac
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], esi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x51a1b5
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.00410610
mov edi, dword [esp + 0x14]
push edi
push esi
push esi
push 0x19
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp edi, esi
jne 0x51a1c9
xor eax, eax
jmp 0x51a1e5
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x51a1d0
sub eax, edx
sar eax, 1
js 0x51a366
cmp eax, dword [edi - 8]
jg 0x51a366
mov dword [edi - 0xc], eax
mov word [edi + eax*2], si
mov ecx, dword [esp + 0x34]
call fcn.0051a580
mov ebp, eax
test ebp, ebp
je 0x51a339
mov eax, edi
mov dword [ebp + 4], 0
lea esi, [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a217
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
mov eax, esi
call fcn.00410570
call fcn.00412840
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x30]
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004e8600
mov ecx, ebp
mov ebx, eax
call fcn.00532c00
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x48]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x51a288
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x51a320
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x51a270
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a2ac
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov edi, dword [esp + 0x34]
xor ecx, ecx
mov eax, str.configinstall_startmenuitem
call fcn.00418fb0
test eax, eax
je 0x51a448
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], 1
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x51a309
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.00410610
mov edi, dword [esp + 0x14]
push edi
push 1
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test edi, edi
jne 0x51a370
xor eax, eax
jmp 0x51a386
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
je 0x51a288
mov dword [ebx + 0x48], eax
jmp 0x51a1f5
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a450
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x51a450
push 0x80070057
call fcn.0040fcd0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a375
sub eax, edx
sar eax, 1
js 0x51a366
cmp eax, dword [edi - 8]
jg 0x51a366
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
mov ecx, dword [esp + 0x34]
call fcn.0051a580
mov ebp, eax
test ebp, ebp
je 0x51a47f
mov eax, edi
mov dword [ebp + 4], 0
lea esi, [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a3b6
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
mov eax, esi
call fcn.00410570
call fcn.00412840
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x30]
mov esi, dword [ebp + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call fcn.004e8600
mov ecx, ebp
mov ebx, eax
call fcn.00532c00
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x48]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x51a424
lea ecx, [ecx]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x51a46a
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x51a410
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a448
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
je 0x51a424
mov dword [ebx + 0x48], eax
jmp 0x51a394
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51a450
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x51a450