Function at 0x140018a80
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
movsxd r14, r9d
mov rsi, r8
mov rbp, rdx
mov r15, rcx
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0xa0], rax
xor r12d, r12d
mov ecx, VariantTimeToDosDateTime
mov eax, 0x31
cmp r14d, 1
cmove ecx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x40], eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0x32
cmp r14d, 1
cmove ecx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x550], r12d
jne 0x140018bb3
test rbp, rbp
je 0x140018b28
cmp qword [rbp + 8], r12
je 0x140018b28
mov rcx, rbp
call fcn.140073b38
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r13, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140018b8c
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, 0x18
jl 0x140018b8c
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 8
mov r9d, 0x21
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov rcx, rbp
call fcn.140073c94
jmp 0x140018bb3
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 8
mov r9d, 0xff
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov rcx, rbp
call fcn.140073c94
test r15, r15
jne 0x140018bf1
mov edx, 0x104
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, str.SHELL32.DLL
lea r8, [rsp + 0x2c0]
lea rdx, [0x1400a3e08]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140018c02
mov rdx, r15
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r15d, r15d
mov rdi, r15
cmp dword [rsi], 0x7fffffff
je 0x140018cb5
mov rax, rsi
cmp r14, 1
jne 0x140018c3c
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, dword [rax]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
jmp 0x140018c5c
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, dword [rax]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x140018c91
cmp qword [rsp + 0x48], r15
je 0x140018ca1
mov rbx, qword [rbp + 8]
call fcn.140069504
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.140017af0
add r12d, 1
jmp 0x140018ca1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018ca1
call qword [sym.imp.USER32.dll_DestroyIcon]
add rdi, 1
lea rax, [rsi + rdi*4]
cmp dword [rax], 0x7fffffff
jne 0x140018c17
mov r13d, r15d
cmp dword [rsi], 0x7fffffff
je 0x140018ef4
lea rax, [0x1400a6f68]
nop
nop
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140018e86
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x80]
call fcn.140075ef0
nop
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x70], r15d
mov r14d, dword [rsp + 0x44]
mov dword [rsp + 0x7c], r14d
mov edi, dword [rsp + 0x40]
mov dword [rsp + 0x78], edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14007658c
mov r8d, r14d
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140076840
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.140076914
mov r14, rax
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColor]
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140076e50
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x64], r15d
mov rdi, qword [rbp + 8]
mov rbx, qword [rsp + 0x60]
shr rbx, 0x20
call fcn.140069504
mov rcx, qword [rax + 0xc8]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x88]
mov r8d, r13d
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140017ca0
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x6c], r15d
mov rdi, qword [rbp + 8]
mov rbx, qword [rsp + 0x68]
shr rbx, 0x20
call fcn.140069504
mov rcx, qword [rax + 0xc8]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x88]
mov r8d, 6
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140017ca0
test r14, r14
jne 0x140018e1e
mov rdx, r15
jmp 0x140018e22
mov rdx, qword [r14 + 8]
mov rcx, qword [rsp + 0x88]
call fcn.140076914
lea rcx, [rsp + 0x80]
call fcn.140076628
mov rbx, qword [rbp + 8]
call fcn.140069504
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.140017940
nop
lea rcx, [rsp + 0x80]
call fcn.14007664c
nop
lea rax, [0x1400a6f68]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140018790
jmp 0x140018ed0
mov rbx, qword [rbp + 8]
call fcn.140069504
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.140017e70
mov qword [rsp + 0x48], rax
mov rbx, qword [rbp + 8]
call fcn.140069504
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.140017af0
add r12d, 1
add r13d, 1
add rsi, 4
cmp dword [rsi], 0x7fffffff
lea rax, [0x1400a6f68]
jne 0x140018cd0
mov eax, r12d
jmp 0x140018ef7
mov eax, r12d
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140081050
add rsp, 0x4e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret