Function at 0x14000ce00
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f8]
sub rsp, 0x4f8
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov ebx, r9d
mov dword [rsp + 0x50], ebx
mov rsi, r8
mov r13, rdx
mov r14, rcx
mov rax, qword [rbp + 0x460]
mov qword [rbp - 0x70], rax
xor r8d, r8d
lea rdx, str.Tool_GetIconData
lea rcx, [rbp - 0x68]
call fcn.14000b870
nop
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, str.lpszFile___s__lpIconID___d__bSmallSize___d__bAdd___
mov edx, 1
lea rcx, [rbp - 0x68]
call fcn.14000ba50
xor r12d, r12d
mov ecx, VariantTimeToDosDateTime
mov eax, 0x31
cmp ebx, 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 ebx, 1
cmove ecx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x44], eax
test r13, r13
je 0x14000ced8
cmp qword [r13 + 8], r12
je 0x14000ced8
mov rcx, r13
call fcn.14005afe4
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r15, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x14000cf19
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, 0x18
mov r9d, 0x21
jge 0x14000cf1f
mov r9d, 0xff
mov dword [rsp + 0x28], 8
mov r15d, dword [rsp + 0x40]
mov dword [rsp + 0x20], 8
mov r8d, dword [rsp + 0x44]
mov edx, r15d
mov rcx, r13
call fcn.14005b1c4
test r14, r14
jne 0x14000cf7c
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, str.SHELL32.DLL
lea r8, [rbp + 0x1d0]
lea rdx, str._s_s
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14000cf89
mov rdx, r14
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
movsxd r14, dword [rsp + 0x50]
cmp dword [rsi], 0x7fffffff
je 0x14000d020
mov rax, rsi
nop
mov dword [rsp + 0x20], 1
mov edx, dword [rax]
lea rcx, [rbp - 0x40]
cmp r14, 1
jne 0x14000cfbe
lea r9, [rsp + 0x48]
xor r8d, r8d
jmp 0x14000cfc6
xor r9d, r9d
lea r8, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x14000d001
cmp qword [rsp + 0x48], 0
je 0x14000d011
mov rbx, qword [r13 + 8]
call fcn.140050920
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.14000b1e0
inc r12d
jmp 0x14000d011
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000d011
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
lea rax, [rsi + rdi*4]
cmp dword [rax], 0x7fffffff
jne 0x14000cfa0
xor edi, edi
mov r14d, edi
cmp dword [rsi], 0x7fffffff
je 0x14000d230
lea rax, vtable.CBitmap.0
nop dword [rax + rax]
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x14000d1c4
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
call fcn.14005d554
nop
mov qword [rbp - 0x50], 0
mov edi, dword [rsp + 0x44]
mov dword [rbp - 0x44], edi
mov dword [rbp - 0x48], r15d
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14005de84
mov r8d, edi
mov edx, r15d
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14005e224
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.14005e2fc
mov r15, rax
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColor]
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.14005f26c
xor eax, eax
mov qword [rsp + 0x50], rax
mov rdi, qword [r13 + 8]
mov ebx, eax
shr rbx, 0x20
call fcn.140050920
mov rcx, qword [rax + 0xc8]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, qword [rsp + 0x78]
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.14000b340
mov qword [rsp + 0x68], rbx
mov rdi, qword [r13 + 8]
shr rbx, 0x20
call fcn.140050920
mov rcx, qword [rax + 0xc8]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x78]
mov r8d, 6
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.14000b340
xor edi, edi
test r15, r15
mov edx, edi
je 0x14000d169
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x78]
call fcn.14005e2fc
lea rcx, [rsp + 0x70]
call fcn.14005df20
mov rbx, qword [r13 + 8]
call fcn.140050920
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.14000b080
nop
lea rcx, [rsp + 0x70]
call fcn.14005df48
nop
lea rax, vtable.CBitmap.0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.14000b5c0
jmp 0x14000d20e
mov rbx, qword [r13 + 8]
call fcn.140050920
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.14000b4b0
mov qword [rsp + 0x48], rax
mov rbx, qword [r13 + 8]
call fcn.140050920
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.14000b1e0
inc r12d
inc r14d
add rsi, 4
cmp dword [rsi], 0x7fffffff
mov r15d, dword [rsp + 0x40]
lea rax, vtable.CBitmap.0
jne 0x14000d040
mov r9d, r12d
lea r8, str.return___d
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.14000ba50
nop
lea rcx, [rbp - 0x68]
call fcn.14000ba00
mov eax, r12d
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x4f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret