Function at 0x654278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00408778
mov eax, dword [ebp - 8]
call fcn.00408778
mov eax, dword [ebp - 0xc]
call fcn.00408778
mov eax, dword [ebp + 0xc]
call fcn.00408778
xor eax, eax
push ebp
push 0x654503
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00421260
test al, al
je 0x6544a0
cmp dword [ebp - 0xc], 0
jne 0x654321
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.00421980
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0xc]
xor edx, edx
call fcn.0042173c
lea edx, [ebp - 0x10]
mov eax, dword [0x66f438]
call fcn.004f92a8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x654514
call fcn.0040d028
mov eax, dword [ebp - 4]
call fcn.004095e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.004095e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 4]
call fcn.00421810
mov eax, dword [ebp - 0x234]
call fcn.004095e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
cmp dword [ebp + 0xc], 0
jne 0x654392
cmp esi, 0xffffffff
jne 0x654392
xor esi, esi
cmp esi, 0xffffffff
jle 0x654402
lea eax, [ebp - 0x20]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xa
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0x11
lea edx, [ebp - 0x248]
mov ecx, 1
mov eax, 0x654530
call fcn.00422114
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1c]
call fcn.004096d4
jmp 0x654476
lea edx, [ebp - 0x24c]
mov eax, dword [ebp + 0xc]
call fcn.00427e1c
mov edx, dword [ebp - 0x24c]
lea eax, [ebp + 0xc]
call fcn.00408abc
mov dl, 1
mov eax, dword [ebp + 0xc]
call fcn.004212f8
test al, al
je 0x6544a0
lea eax, [ebp - 0x250]
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0x11
lea edx, [ebp - 0x248]
mov ecx, 1
mov eax, 0x654530
call fcn.00422114
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x1c]
call fcn.004096d4
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x654544
call fcn.0040d028
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004092d4
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x6544a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65450a
lea eax, [ebp - 0x250]
mov edx, 2
call fcn.004086f4
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004086f4
lea eax, [ebp - 0x1c]
call fcn.004086dc
lea eax, [ebp - 0x18]
call fcn.0040cfe4
lea eax, [ebp - 0x14]
call fcn.0040cfe4
lea eax, [ebp - 0x10]
call fcn.0040cfe4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004086f4
lea eax, [ebp + 0xc]
call fcn.00408694
ret