Function at 0x405653
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x46d2b6
call fcn.004517f7
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x22c], esi
push str._DSName
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], 2
call fcn.004017d1
test eax, eax
jne 0x40570e
mov esi, 0x477f88
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebx]
add ecx, 4
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00406973
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 4
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00403c5b
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
jmp 0x4059c1
push str._Folder
lea eax, [ebp + 0xc]
push eax
call fcn.004017d1
test eax, eax
jne 0x405793
mov esi, 0x477f88
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [ebx]
add ecx, 0x54
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00406973
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 7
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00403c5b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x228]
jmp 0x4059af
push str._PicturesFolder
lea eax, [ebp + 0xc]
push eax
call fcn.004017d1
test eax, eax
jne 0x405892
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x220]
call fcn.00402773
lea ebx, [ebp - 0x224]
mov byte [ebp - 4], 9
call fcn.00428510
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xa
call fcn.0040270e
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040285d
mov ebx, dword [ebp - 0x220]
push ebx
call fcn.00429ea3
pop ecx
test eax, eax
jne 0x405801
call fcn.00429e5f
mov esi, 0x477f88
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004017f8
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 0xb
call fcn.00406973
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xc
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00403c5b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 2
lea ecx, [ebx - 0x10]
jmp 0x4059c4
push str._DocumentsFolder
lea eax, [ebp + 0xc]
push eax
call fcn.004017d1
test eax, eax
jne 0x40593d
push esi
push 5
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004024c3
mov esi, 0x477f88
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 0xe
call fcn.004017f8
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xf
call fcn.00406973
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0x10
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00403c5b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040285d
jmp 0x40577a
push str._Format
lea eax, [ebp + 0xc]
push eax
call fcn.004017d1
test eax, eax
jne 0x4059c9
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x220]
call fcn.00402773
mov byte [ebp - 4], 0x12
mov eax, dword [ebx]
push dword [eax + 0x48]
lea eax, [ebp - 0x220]
push 0x477a1c
push eax
call fcn.0040314f
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00406973
add esp, 0xc
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00403c5b
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0040283c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, edi
call fcn.0045187a
ret 0xc