Function at 0x4013f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2134]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2144]
mov ebx, ecx
or ebp, 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
mov byte [esp + 0xf], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
push edi
mov edi, dword [esp + 0x2140]
test esi, esi
jne 0x401470
lea eax, [esp + 0x24]
push eax
push esi
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x11
push dword [ebx]
call esi
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x12
push dword [ebx]
call esi
mov esi, dword [esp + 0x2148]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push 0x20
push dword [ebx]
mov dword [esp + 0x24], 0
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x4016d6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4016d6
lea edx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x4016cc
lea esp, [esp]
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0x10000000
push ecx
push 1
push edi
call dword [eax + 0x24]
test dword [esp + 0x28], 0x10000000
jne 0x4014f8
mov eax, dword [0x5ac874]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x4016a7
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push edi
call fcn.00412850
test al, al
jne 0x401529
mov eax, dword [0x5ac874]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x4016a7
test esi, esi
jne 0x4015c8
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.00401a80
push dword [esp + 0x14]
mov esi, eax
mov eax, dword [edi]
push dword [esp + 0x24]
push 0
push edi
call dword [eax + 0x1c]
test eax, eax
jne 0x40156b
lea eax, [esi + 1]
mov dword [ebx + 4], eax
push dword [esp + 0x14]
mov eax, dword [edi]
push dword [esp + 0x28]
push 0
push edi
call dword [eax + 0x1c]
test eax, eax
jne 0x4016a7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
push ecx
push 0x52b2f8
push 0
push dword [esp + 0x20]
push edi
call dword [eax + 0x14]
test eax, eax
jne 0x4016a7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4016a7
push 1
push dword [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004013f0
mov byte [esp + 0x13], al
jmp 0x4016a7
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.00410d70
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 [0x5ac874]
push esi
push eax
setne bl
mov ecx, dword [eax]
call dword [ecx + 0x14]
test bl, bl
jne 0x401617
mov eax, dword [0x5ac874]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, dword [esp + 0x1c]
jmp 0x4016a7
lea eax, [esp + 0x38]
push eax
call fcn.0047d170
test al, al
je 0x40167c
mov ax, word [esp + 0x3c]
test ax, ax
je 0x40163d
cmp ax, 0x5c
jne 0x40167c
cmp word [esp + 0x3e], 0
jne 0x40167c
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.0047bc90
mov ebx, dword [esp + 0x1c]
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.00401a80
cmp ebp, 0xffffffff
je 0x401675
inc ebp
mov byte [esp + 0x13], 1
jmp 0x4016a7
mov ebx, dword [esp + 0x1c]
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.00401a80
cmp ebp, 0xffffffff
jne 0x4016a7
mov ebp, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
mov esi, dword [esp + 0x2148]
test eax, eax
je 0x4014c0
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x4016f4
mov eax, dword [0x5ac874]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [esp + 0x14]
test edx, edx
je 0x401708
mov eax, dword [0x5ac874]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x2128]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.004f833c
add esp, 0x212c
ret 0xc