Function at 0x460c28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520064
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
movzx edx, byte [0x5714a4]
mov dword [ebp - 0x14], eax
test edx, edx
jne 0x460c65
call fcn.00460e7c
mov edx, dword [ebp + 8]
mov eax, dword [0x55d358]
mov dword [edx], eax
mov dword [ebp - 4], 0
mov eax, dword [0x57149c]
test eax, eax
jne 0x460dd1
mov eax, dword [0x5714a0]
test eax, eax
jne 0x460d86
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x460e20
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 4
mov edx, dword [0x55d358]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 5
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x50], ecx
push 0x104
call fcn.0042f7f0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 6
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x50]
call fcn.0042f7a8
mov dword [ebp - 4], 7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00430810
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 8
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x38]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x460d4a
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x460d4a
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x460e20
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x460e20
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x48]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x460e20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], ecx
push 0x104
call fcn.0042f7f0
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push edx
push eax
push ecx
call dword [0x5714a0]
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
call fcn.0042f7a8
test ebx, ebx
jl 0x460c90
jmp 0x460e20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ecx
push 0x104
call fcn.0042f7f0
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push edx
push eax
push edx
call dword [0x57149c]
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.0042f7a8
cmp ebx, 1
je 0x460e34
test ebx, ebx
jl 0x460c83
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], ecx
push 0x104
call fcn.0042f7f0
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x14]
push 1
xor edx, edx
push edx
push eax
push edx
call dword [0x57149c]
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
call fcn.0042f7a8
jmp 0x460e18