Function at 0x417c3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov eax, 0x4e76a0
call fcn.004c0e00
mov word [ebp - 0x30], 8
lea eax, [ebp - 4]
call fcn.00402870
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x4e1d5f
lea eax, [ebp - 8]
call fcn.004de468
inc dword [ebp - 0x24]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004de634
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004de604
lea ecx, [ebp - 0x4c]
push ecx
call sub.SHELL32.DLL_SHGetMalloc
test eax, eax
jge 0x417d11
mov word [ebp - 0x30], 0x2c
mov edx, 0x4e1d60
lea eax, [ebp - 0xc]
call fcn.004de468
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004de634
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x30], 0x38
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004de604
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004de604
pop eax
mov word [ebp - 0x30], 0x2c
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x417e99
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x48]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jge 0x417d87
mov word [ebp - 0x30], 0x44
mov edx, 0x4e1d66
lea eax, [ebp - 0x14]
call fcn.004de468
inc dword [ebp - 0x24]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004de634
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x30], 0x50
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004de604
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004de604
pop eax
mov word [ebp - 0x30], 0x44
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x417e99
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp - 0x50]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
jne 0x417e13
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x4c]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov word [ebp - 0x30], 0x5c
mov edx, str.error
lea eax, [ebp - 0x18]
call fcn.004de468
inc dword [ebp - 0x24]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004de634
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x30], 0x68
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004de604
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004de604
pop eax
mov word [ebp - 0x30], 0x5c
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x417e99
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov word [ebp - 0x30], 0x74
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x1c]
call fcn.004de468
inc dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004de634
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004de604
mov word [ebp - 0x30], 0x80
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004de634
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x30], 0x8c
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004de604
pop eax
mov word [ebp - 0x30], 0x80
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret