Function at 0x401560
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2134]
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x2c], eax
or ebp, 0xffffffff
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x2144], 0
push edi
mov edi, dword [esp + 0x2140]
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
jne 0x4015dc
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x11
push dword [ebx]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x12
push dword [ebx]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov esi, dword [edi]
lea eax, [esp + 0x18]
push eax
push 0x20
push dword [ebx]
mov esi, dword [esi + 0x10]
mov ecx, esi
push edi
mov dword [esp + 0x28], 0
call dword [0x540780]
call esi
test eax, eax
jne 0x40189f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40189f
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0
mov esi, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, dword [esi + 0xc]
mov ecx, esi
push 1
push eax
call dword [0x540780]
call esi
test eax, eax
jne 0x40188b
lea ecx, [ecx]
mov esi, dword [edi]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0x10000000
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
push 1
push edi
call dword [0x540780]
call esi
test dword [esp + 0x2c], 0x10000000
jne 0x40168c
mov eax, dword [0x5e4c48]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
jmp 0x401863
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push edi
call fcn.00415570
test al, al
je 0x40166e
cmp dword [esp + 0x2148], 0
jne 0x401770
push 1
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x1044]
mov ecx, ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push 4
push eax
call fcn.00401c90
push dword [esp + 0x14]
mov esi, dword [edi]
push dword [esp + 0x28]
mov dword [esp + 0x24], eax
push 0
mov esi, dword [esi + 0x1c]
mov ecx, esi
push edi
call dword [0x540780]
call esi
test eax, eax
jne 0x4016ff
mov eax, dword [esp + 0x1c]
inc eax
mov dword [ebx + 4], eax
push dword [esp + 0x14]
mov esi, dword [edi]
push dword [esp + 0x2c]
push 0
mov esi, dword [esi + 0x1c]
mov ecx, esi
push edi
call dword [0x540780]
call esi
test eax, eax
jne 0x401863
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x555f20
mov esi, dword [esi + 0x14]
mov ecx, esi
push 0
push dword [esp + 0x20]
push edi
call dword [0x540780]
call esi
test eax, eax
jne 0x401863
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401863
push 1
push dword [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00401560
mov byte [esp + 0x13], al
jmp 0x401863
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.00413840
mov esi, eax
xor eax, eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
mov eax, dword [0x5e4c48]
push esi
push eax
setne bl
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
test bl, bl
jne 0x4017d3
mov eax, dword [0x5e4c48]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov ebx, dword [esp + 0x20]
jmp 0x401863
lea eax, [esp + 0x38]
push eax
call fcn.00485b10
test al, al
je 0x401838
mov ax, word [esp + 0x3c]
test ax, ax
je 0x4017f9
cmp ax, 0x5c
jne 0x401838
cmp word [esp + 0x3e], 0
jne 0x401838
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.00484610
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x1038]
push 1
push ebp
push 2
push eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [esp + 0x54]
mov ecx, ebx
push eax
call fcn.00401c90
cmp ebp, 0xffffffff
je 0x401831
inc ebp
mov byte [esp + 0x13], 1
jmp 0x401863
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x1038]
push 1
push 0xffffffffffffffff
push 2
push eax
push 0xffffffffffffffff
push 0
push 5
lea eax, [esp + 0x54]
mov ecx, ebx
push eax
call fcn.00401c90
cmp ebp, 0xffffffff
jne 0x401863
mov ebp, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, dword [eax]
push 1
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x540780]
call esi
test eax, eax
je 0x401640
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4018cd
mov eax, dword [0x5e4c48]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4018eb
mov eax, dword [0x5e4c48]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov ecx, dword [esp + 0x2138]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x212c
ret 0xc