Function at 0x40d45d
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x567c1f
call fcn.0053cea9
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x228], esi
push str._DSName
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 2
call fcn.00402e8e
test eax, eax
jne 0x40d50d
mov esi, 0x59a080
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040193e
mov byte [ebp - 4], 3
mov ecx, dword [ebx]
add ecx, 4
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004018e7
push esi
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 4
call fcn.0040193e
add esp, 0x24
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0de
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
jmp 0x40d7a7
push str._Folder
lea ecx, [ebp + 0xc]
call fcn.00402e8e
test eax, eax
jne 0x40d58b
mov esi, 0x59a080
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040193e
mov byte [ebp - 4], 6
mov ecx, dword [ebx]
add ecx, 0x54
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004018e7
push esi
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 7
call fcn.0040193e
add esp, 0x24
mov byte [ebp - 4], 8
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0de
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
jmp 0x40d795
push str._PicturesFolder
lea ecx, [ebp + 0xc]
call fcn.00402e8e
test eax, eax
jne 0x40d683
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402723
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 9
call fcn.0043593c
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call fcn.0040248f
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
mov ebx, dword [ebp - 0x21c]
push ebx
call fcn.004372a8
pop ecx
test eax, eax
jne 0x40d5f8
call fcn.00437264
mov esi, 0x59a080
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040193e
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xb
call fcn.004018e7
push esi
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040193e
add esp, 0x24
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0de
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 2
lea ecx, [ebx - 0x10]
jmp 0x40d7aa
push str._DocumentsFolder
lea ecx, [ebp + 0xc]
call fcn.00402e8e
test eax, eax
jne 0x40d727
push esi
push 5
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040235d
mov esi, 0x59a080
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040193e
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 0xf
call fcn.004018e7
push esi
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040193e
add esp, 0x24
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0de
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
jmp 0x40d572
push str._Format
lea ecx, [ebp + 0xc]
call fcn.00402e8e
test eax, eax
jne 0x40d7af
call fcn.00437a9e
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402723
mov byte [ebp - 4], 0x12
mov eax, dword [ebx]
push dword [eax + 0x48]
lea eax, [ebp - 0x21c]
push 0x599af4
push eax
call fcn.0040a0e9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004018e7
add esp, 0x18
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0de
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040274b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402431
pop ecx
mov ecx, dword [ebp + 8]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [edi], eax
call fcn.0040274b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
mov eax, edi
call fcn.0053cf2c
ret 0xc