Function at 0x478a70
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2134]
push ebx
push ebp
push esi
xor esi, esi
xor bl, bl
push edi
mov edi, dword [esp + 0x2140]
mov ebp, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x13], bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x2148], esi
jne 0x478ae9
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x11
push edx
call esi
mov ecx, dword [ebp]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x12
push ecx
call esi
xor esi, esi
mov ecx, dword [ebp]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x20
push ecx
push edi
mov dword [esp + 0x2c], esi
call edx
test eax, eax
jne 0x478d69
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x478d69
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], esi
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x478d5d
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x24]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
push 1
mov esi, 0x10000000
push edi
mov dword [esp + 0x38], esi
call ecx
mov ecx, dword [esp + 0x14]
test dword [esp + 0x28], esi
jne 0x478b6e
mov eax, dword [0x572b3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x478d37
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push ecx
push edi
call fcn.00486040
test al, al
jne 0x478b9f
mov eax, dword [0x572b3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x478d37
cmp dword [esp + 0x2148], 0
jne 0x478c51
mov ecx, dword [esp + 0x14]
push 1
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x1044]
push eax
push 0xffffffffffffffff
push ecx
push 4
mov edx, eax
push edx
mov ecx, ebp
call fcn.004785e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov esi, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
push 0
push edi
call eax
test eax, eax
jne 0x478bec
inc esi
mov dword [ebp + 4], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
push edx
push eax
push 0
push edi
call ecx
test eax, eax
jne 0x478d37
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push 0x50af10
push 0
push ecx
push edi
call edx
test eax, eax
jne 0x478d37
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x478d37
mov ecx, dword [esp + 0x14]
push 1
push ecx
push eax
mov ecx, ebp
call fcn.00478a70
mov byte [esp + 0x13], al
jmp 0x478d37
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.00485f30
lea edx, [esp + 0x38]
mov esi, eax
push edx
xor ecx, ecx
push esi
mov word [esp + 0x40], cx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
mov eax, dword [0x572b3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
setne bl
call edx
test bl, bl
jne 0x478ca3
mov eax, dword [0x572b3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
jmp 0x478d37
lea ecx, [esp + 0x38]
push ecx
call fcn.00452bf0
test al, al
je 0x478d0c
mov ax, word [esp + 0x3c]
test ax, ax
je 0x478cc9
cmp ax, 0x5c
jne 0x478d0c
cmp word [esp + 0x3e], 0
jne 0x478d0c
push 0x800
lea edx, [esp + 0x3c]
push edx
call fcn.00452c60
mov esi, dword [esp + 0x18]
push 1
push esi
push 2
lea eax, [esp + 0x1044]
push eax
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call fcn.004785e0
cmp esi, 0xffffffff
je 0x478d05
inc esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x13], 1
jmp 0x478d37
push 1
push 0xffffffffffffffff
push 2
lea edx, [esp + 0x1044]
push edx
push 0xffffffffffffffff
push 0
push 5
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call fcn.004785e0
cmp dword [esp + 0x18], 0xffffffff
jne 0x478d37
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x478b34
mov bl, byte [esp + 0x13]
xor esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x478d88
mov ecx, dword [0x572b3c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x478d9e
mov eax, dword [0x572b3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esp + 0x2138]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x212c
ret 0xc