Function at 0x401720
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2134]
push ebx
mov ebx, dword [esp + 0x2134]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
or ebp, 0xffffffff
mov dword [esp + 0x20], edi
cmp dword [esp + 0x2148], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
jne 0x40179c
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x11
push dword [edi]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x12
push dword [edi]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
mov esi, dword [eax + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20
push dword [edi]
mov ecx, esi
push ebx
call dword [0x541740]
call esi
test eax, eax
jne 0x401a5d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401a5d
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ecx
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
jne 0x401a49
lea esp, [esp]
mov esi, dword [ebx]
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 ebx
call dword [0x541740]
call esi
test dword [esp + 0x2c], 0x10000000
jne 0x40184c
mov eax, dword [0x5e3c10]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
jmp 0x401a21
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push ebx
call fcn.00416150
test al, al
je 0x40182e
cmp dword [esp + 0x2148], 0
jne 0x401930
push 1
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x1044]
mov ecx, edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push 4
push eax
call fcn.00401f70
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
push dword [esp + 0x28]
push 0
mov esi, dword [eax + 0x1c]
mov ecx, esi
push ebx
call dword [0x541740]
call esi
test eax, eax
jne 0x4018bf
mov eax, dword [esp + 0x1c]
inc eax
mov dword [edi + 4], eax
push dword [esp + 0x14]
mov eax, dword [ebx]
push dword [esp + 0x2c]
push 0
mov esi, dword [eax + 0x1c]
mov ecx, esi
push ebx
call dword [0x541740]
call esi
test eax, eax
jne 0x401a21
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x557ad4
push 0
push dword [esp + 0x20]
mov ecx, esi
push ebx
call dword [0x541740]
call esi
test eax, eax
jne 0x401a21
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401a21
push 1
push dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.00401720
mov byte [esp + 0x13], al
jmp 0x401a21
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.00414300
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]
mov ecx, dword [0x5e3c10]
mov edi, eax
push esi
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
test edi, edi
jne 0x401991
mov eax, dword [0x5e3c10]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov edi, dword [esp + 0x20]
jmp 0x401a21
lea eax, [esp + 0x38]
push eax
call fcn.00494ec0
test al, al
je 0x4019f6
mov ax, word [esp + 0x3c]
test ax, ax
je 0x4019b7
cmp ax, 0x5c
jne 0x4019f6
cmp word [esp + 0x3e], 0
jne 0x4019f6
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.00493970
mov edi, 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, edi
push eax
call fcn.00401f70
cmp ebp, 0xffffffff
je 0x4019ef
inc ebp
mov byte [esp + 0x13], 1
jmp 0x401a21
mov edi, 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, edi
push eax
call fcn.00401f70
cmp ebp, 0xffffffff
jne 0x401a21
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ecx
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
je 0x401800
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x541740]
call esi
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x401a8b
mov eax, dword [0x5e3c10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x401aa9
mov eax, dword [0x5e3c10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
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.0051dca8
add esp, 0x212c
ret 0xc