Function at 0x4013f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.00502fa0
mov eax, dword [0x5513d4]
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 0x40146c
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 [0x523720]
call esi
test eax, eax
jne 0x40172f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40172f
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 [0x523720]
call esi
test eax, eax
jne 0x40171b
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 [0x523720]
call esi
test dword [esp + 0x2c], 0x10000000
jne 0x40151c
mov eax, dword [0x5b976c]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
jmp 0x4016f3
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push edi
call fcn.004153e0
test al, al
je 0x4014fe
cmp dword [esp + 0x2148], 0
jne 0x401600
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.00401b20
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 [0x523720]
call esi
test eax, eax
jne 0x40158f
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 [0x523720]
call esi
test eax, eax
jne 0x4016f3
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x5381c4
mov esi, dword [esi + 0x14]
mov ecx, esi
push 0
push dword [esp + 0x20]
push edi
call dword [0x523720]
call esi
test eax, eax
jne 0x4016f3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4016f3
push 1
push dword [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004013f0
mov byte [esp + 0x13], al
jmp 0x4016f3
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.004136c0
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 [0x5b976c]
push esi
push eax
setne bl
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
test bl, bl
jne 0x401663
mov eax, dword [0x5b976c]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
mov ebx, dword [esp + 0x20]
jmp 0x4016f3
lea eax, [esp + 0x38]
push eax
call fcn.00484bc0
test al, al
je 0x4016c8
mov ax, word [esp + 0x3c]
test ax, ax
je 0x401689
cmp ax, 0x5c
jne 0x4016c8
cmp word [esp + 0x3e], 0
jne 0x4016c8
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.004836c0
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.00401b20
cmp ebp, 0xffffffff
je 0x4016c1
inc ebp
mov byte [esp + 0x13], 1
jmp 0x4016f3
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.00401b20
cmp ebp, 0xffffffff
jne 0x4016f3
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 [0x523720]
call esi
test eax, eax
je 0x4014d0
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x523720]
call esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x523720]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40175d
mov eax, dword [0x5b976c]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40177b
mov eax, dword [0x5b976c]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
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.00502f8e
add esp, 0x212c
ret 0xc