Function at 0x401620
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.004ebbf0
mov eax, dword [0x528af4]
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 0x4016a0
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 0x401906
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401906
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 0x4018fc
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 0x401728
mov eax, dword [0x595554]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x4018d7
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push edi
call fcn.00411de0
test al, al
jne 0x401759
mov eax, dword [0x595554]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x4018d7
test esi, esi
jne 0x4017f8
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.00401cb0
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 0x40179b
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 0x4018d7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
push ecx
push 0x515078
push 0
push dword [esp + 0x20]
push edi
call dword [eax + 0x14]
test eax, eax
jne 0x4018d7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4018d7
push 1
push dword [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00401620
mov byte [esp + 0x13], al
jmp 0x4018d7
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.00410320
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 [0x595554]
push esi
push eax
setne bl
mov ecx, dword [eax]
call dword [ecx + 0x14]
test bl, bl
jne 0x401847
mov eax, dword [0x595554]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, dword [esp + 0x1c]
jmp 0x4018d7
lea eax, [esp + 0x38]
push eax
call fcn.00478840
test al, al
je 0x4018ac
mov ax, word [esp + 0x3c]
test ax, ax
je 0x40186d
cmp ax, 0x5c
jne 0x4018ac
cmp word [esp + 0x3e], 0
jne 0x4018ac
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.00477290
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.00401cb0
cmp ebp, 0xffffffff
je 0x4018a5
inc ebp
mov byte [esp + 0x13], 1
jmp 0x4018d7
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.00401cb0
cmp ebp, 0xffffffff
jne 0x4018d7
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 0x4016f0
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 0x401924
mov eax, dword [0x595554]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [esp + 0x14]
test edx, edx
je 0x401938
mov eax, dword [0x595554]
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.004ebbd8
add esp, 0x212c
ret 0xc