Function at 0x140016890
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 [0x14026fdb0]
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.140001190
nop
xor edi, edi
mov dword [rsp + 0x30], edi
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___
lea edx, [rdi + 1]
lea rcx, [rbp - 0x68]
call fcn.140001370
mov qword [rsp + 0x48], rdi
mov r12d, edi
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 0x140016969
cmp qword [r13 + 8], rdi
je 0x140016969
mov rcx, r13
call fcn.140066d88
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 0x1400169aa
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 0x1400169b0
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.140066f68
test r14, r14
jne 0x140016a0d
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 0x140016a1a
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 0x140016ab0
mov rax, rsi
mov dword [rsp + 0x20], 1
mov edx, dword [rax]
lea rcx, [rbp - 0x40]
cmp r14, 1
jne 0x140016a4e
lea r9, [rsp + 0x48]
xor r8d, r8d
jmp 0x140016a56
xor r9d, r9d
lea r8, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x140016a91
cmp qword [rsp + 0x48], 0
je 0x140016aa1
mov rbx, qword [r13 + 8]
call fcn.140059f20
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.1400160d0
inc r12d
jmp 0x140016aa1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016aa1
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
lea rax, [rsi + rdi*4]
cmp dword [rax], 0x7fffffff
jne 0x140016a30
xor edi, edi
mov r14d, edi
cmp dword [rsi], 0x7fffffff
je 0x140016cc0
lea rax, vtable.CBitmap.0
nop dword [rax + rax]
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140016c54
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
call fcn.1400676c4
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.140067ff4
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.140068394
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.14006846c
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.140068fcc
xor eax, eax
mov qword [rsp + 0x50], rax
mov rdi, qword [r13 + 8]
mov ebx, eax
shr rbx, 0x20
call fcn.140059f20
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.140016230
mov qword [rsp + 0x68], rbx
mov rdi, qword [r13 + 8]
shr rbx, 0x20
call fcn.140059f20
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.140016230
xor edi, edi
test r15, r15
mov edx, edi
je 0x140016bf9
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x78]
call fcn.14006846c
lea rcx, [rsp + 0x70]
call fcn.140068090
mov rbx, qword [r13 + 8]
call fcn.140059f20
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.140015f70
nop
lea rcx, [rsp + 0x70]
call fcn.1400680b8
nop
lea rax, vtable.CBitmap.0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.1400164b0
jmp 0x140016c9e
mov rbx, qword [r13 + 8]
call fcn.140059f20
mov rcx, qword [rax + 0xc8]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.1400163a0
mov qword [rsp + 0x48], rax
mov rbx, qword [r13 + 8]
call fcn.140059f20
mov rcx, qword [rax + 0xc8]
mov r9, qword [rsp + 0x48]
or r8d, 0xffffffff
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.1400160d0
inc r12d
inc r14d
add rsi, 4
cmp dword [rsi], 0x7fffffff
mov r15d, dword [rsp + 0x40]
lea rax, vtable.CBitmap.0
jne 0x140016ad0
mov r9d, r12d
lea r8, str.return___d
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140001370
nop
lea rcx, [rbp - 0x68]
call fcn.140001320
mov eax, r12d
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x4f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret