Function at 0x1400d0c00
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rcx
mov byte [rcx], 0
mov byte [rcx + 8], 0
xor r13d, r13d
mov qword [rcx + 0xc], r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x1400d0c96
lea edx, [r13 + 0x58]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsi + 0xc], eax
lea edx, [r13 + 0x5a]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsi + 0x10], eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x20], r13
mov qword [rsi + 0x28], r13
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
mov qword [rsi + 0x48], r13
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], r13
mov qword [rsi + 0x60], r13
mov qword [rsi + 0x68], r13
mov qword [rsi + 0x70], r13
mov qword [rsi + 0x78], r13
mov qword [rsi + 0x80], r13
mov qword [rsi + 0x88], r13
lea rcx, [rsi + 0x90]
call fcn.1400d07d0
nop
lea rax, [rsi + 0x890]
mov qword [rsp + 0x30], rax
mov word [rax], 0x101
mov byte [rax + 2], 1
mov dword [rax + 4], 4
mov dword [rax + 8], 1
mov dword [rax + 0xc], 0x10101
mov word [rax + 0x10], 0
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
mov word [rax + 0x38], 0
mov dword [rax + 0x3c], 2
mov dword [rax + 0x40], 1
mov byte [rax + 0x44], 1
lea rcx, [rsi + 0x8d8]
xor edx, edx
mov r8d, 0x320
call fcn.14019e060
mov dword [rsi + 0xbf8], r13d
mov dword [rsi + 0xcf0], r13d
mov dword [rsi + 0xcf4], 0xa
mov byte [rsi + 0xcf8], 0
mov r14, 0xffffffffffffffff
mov dword [rsi + 0xcfc], r14d
lea rax, [rsi + 0xd00]
mov qword [rsp + 0x30], rax
mov byte [rax], 0
mov dword [rax + 4], 0xa
mov dword [rax + 8], 0xa
mov dword [rax + 0xc], 0xa
mov dword [rax + 0x10], 0xa
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], r13
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], r13
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
mov dword [rax + 0x78], 0x1010000
mov word [rax + 0x7c], 0x100
mov byte [rax + 0x7e], 0
mov dword [rax + 0x80], r13d
mov dword [rax + 0x84], 1
mov dword [rax + 0x88], 0x96
mov word [rax + 0x8c], 0
mov byte [rax + 0x8e], 0
mov byte [rsi + 0xe80], 0
mov qword [rsi + 0xe98], r13
mov qword [rsi + 0xea0], 7
mov word [rsi + 0xe88], r13w
mov qword [rsi + 0xeb8], r13
mov qword [rsi + 0xec0], 7
mov word [rsi + 0xea8], r13w
mov qword [rsi + 0xfb8], r13
mov byte [rsi + 0xfc0], 0
mov qword [rsi + 0xfc4], r13
mov dword [rsi + 0xfcc], r13d
mov dword [rsi + 0xfd0], 0x55
mov dword [rsi + 0xfd4], r14d
lea rbx, [rsi + 0xfd8]
mov qword [rsp + 0x30], rbx
lea rax, [0x1400803f0]
mov qword [rsp + 0x20], rax
lea r9, [0x14007e3e0]
mov edx, 0x7e8
lea r8d, [r14 + 0x65]
mov rcx, rbx
call fcn.140180144
nop
mov dword [rbx + 0x316a0], r13d
lea rbx, [rsi + 0x32680]
mov qword [rsp + 0x30], rbx
lea rax, [0x14004e290]
mov qword [rsp + 0x20], rax
lea r9, [0x14007f540]
lea edx, [r14 + 0x41]
lea r8d, [r14 + 0x1f]
mov rcx, rbx
call fcn.140180144
nop
mov dword [rbx + 0x780], r13d
mov qword [rsi + 0x32e08], r13
mov qword [rsi + 0x32e10], r13
mov qword [rsi + 0x32e18], r13
mov qword [rsi + 0x32e20], r13
mov qword [rsi + 0x32e28], r13
mov qword [rsi + 0x32e30], r13
lea rax, [rsi + 0x32e38]
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rsi + 0x32e50], r13
mov qword [rsi + 0x32e58], r13
mov qword [rsi + 0x32e60], r13
mov byte [rsi + 0x32e69], 0
mov qword [rsi + 0x32e80], r13
mov qword [rsi + 0x32e88], 7
mov word [rsi + 0x32e70], r13w
mov byte [rsi + 0x32e90], 0
lea rdi, [rsi + 0x32e98]
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rsi + 0x32eb0], r13
mov qword [rsi + 0x32eb8], r13
mov qword [rsi + 0x32ec0], r13
mov qword [rsi + 0x32ec8], r13
mov qword [rsi + 0x32ed0], r13
mov qword [rsi + 0x32ed8], r13
mov qword [rsi + 0x32ee0], r13
mov qword [rsi + 0x32ee8], r13
mov qword [rsi + 0x32ef0], r13
mov qword [rsi + 0x32ef8], r13
mov qword [rsi + 0x32f00], r13
mov qword [rsi + 0x32f08], r13
mov qword [rsi + 0x32f10], r13
mov qword [rsi + 0x32f18], r13
mov qword [rsi + 0x32f20], r13
mov qword [rsi + 0x32f28], r13
mov qword [rsi + 0x32f30], r13
mov qword [rsi + 0x32f38], r13
mov qword [rsi + 0x32f40], r13
mov qword [rsi + 0x32f48], r13
mov qword [rsi + 0x32f50], r13
lea rax, [rsi + 0x32f58]
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 7
mov word [rax + 0x18], r13w
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], InitCommonControls
mov byte [rax + 0x38], 0
mov qword [rsi + 0x32fc0], r13
mov qword [rsi + 0x32fc8], 7
mov word [rsi + 0x32fb0], r13w
mov word [rsi + 0x32fd0], 0
lea rax, [rsi + 0x32fd8]
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 7
mov word [rax + 0x18], r13w
mov qword [rsi + 0x33010], r13
mov qword [rsi + 0x33018], r13
mov qword [rsi + 0x33020], r13
lea rax, [rsi + 0x33028]
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov byte [rax + 0x18], 0
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], 7
mov word [rax + 0x20], r13w
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], r13
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
mov qword [rax + 0x78], r13
mov qword [rax + 0x80], r13
mov qword [rsi + 0x330c0], r13
mov qword [rsi + 0x330c8], 7
mov word [rsi + 0x330b0], r13w
mov qword [rsi + 0x330e0], r13
mov qword [rsi + 0x330e8], 7
mov word [rsi + 0x330d0], r13w
mov qword [rsi + 0x33100], r13
mov qword [rsi + 0x33108], 7
mov word [rsi + 0x330f0], r13w
mov qword [rsi + 0x33120], r13
mov qword [rsi + 0x33128], 7
mov word [rsi + 0x33110], r13w
lea r15, [rsi + 0x33130]
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 7
mov word [r15], r13w
mov qword [rsi + 0x33160], r13
mov qword [rsi + 0x33168], 7
mov word [rsi + 0x33150], r13w
mov qword [rsi + 0x33180], r13
mov qword [rsi + 0x33188], 7
mov word [rsi + 0x33170], r13w
lea rbx, [rsi + 0x33190]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov qword [rsi + 0x331c0], r13
mov qword [rsi + 0x331c8], 7
mov word [rsi + 0x331b0], r13w
mov qword [rsi + 0x331e0], r13
mov qword [rsi + 0x331e8], 7
mov word [rsi + 0x331d0], r13w
mov qword [rsi + 0x33200], r13
mov qword [rsi + 0x33208], 7
mov word [rsi + 0x331f0], r13w
mov qword [rsi + 0x33220], r13
mov qword [rsi + 0x33228], 7
mov word [rsi + 0x33210], r13w
lea rcx, [rsi + 0x33230]
lea rax, [fcn.140004620]
mov qword [rsp + 0x20], rax
lea r9, [fcn.1400772f0]
lea edx, [r14 + 0x21]
lea r8d, [r14 + 4]
call fcn.140180144
nop
mov qword [rsi + 0x33290], r13
mov qword [rsi + 0x33298], r13
mov qword [rsi + 0x332a0], r13
mov qword [rsi + 0x332b8], r13
mov qword [rsi + 0x332c0], 7
mov word [rsi + 0x332a8], r13w
lea rax, [rsi + 0x332d8]
mov qword [rsp + 0x30], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], 7
mov word [rax + 0x20], r13w
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], 7
mov word [rax + 0x40], r13w
mov qword [rax + 0x70], r13
mov qword [rax + 0x78], 7
mov word [rax + 0x60], r13w
mov byte [rsi + 0x33358], 0
mov qword [rsi + 0x33368], r13
mov qword [rsi + 0x33388], r13
mov qword [rsi + 0x33390], 7
mov word [rsi + 0x33378], r13w
mov qword [rsi + 0x333a8], r13
mov qword [rsi + 0x333b0], 7
mov word [rsi + 0x33398], r13w
mov qword [rsi + 0x333c8], r13
mov qword [rsi + 0x333d0], 7
mov word [rsi + 0x333b8], r13w
mov qword [rsi + 0x333e8], r13
mov qword [rsi + 0x333f0], 7
mov word [rsi + 0x333d8], r13w
mov word [rsi + 0x333f8], 0
mov rcx, rsi
call fcn.1400e3930
mov dword [rsi + 0x3335c], eax
mov r8d, 0x104
lea rdx, [rbp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rax, [rbp + 0x270]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400d1390
lea rdx, [rbp + 0x270]
mov rcx, r15
call fcn.140006d60
lea rdx, [rbp + 0x480]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rbp + 0x480]
inc r14
cmp word [rax + r14*2], 0
jne 0x1400d13c3
mov r8, r14
lea rdx, [rbp + 0x480]
lea rcx, [rsi + 0x33210]
call fcn.140006d60
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x1400d13f2
mov rbx, qword [rbx]
mov word [rbx], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov r14, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 8
jb 0x1400d140c
mov r15, qword [r15]
cmp r14, 8
jae 0x1400d1425
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], 7
jmp 0x1400d1467
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x70]
call fcn.140006990
mov qword [rsp + 0x70], rax
lea r8, [r14*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.14019dbf0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1401e3030]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], r13w
mov r8d, InitCommonControls
lea rdx, str.asNotepad.xml
lea rcx, [rsp + 0x50]
call fcn.140006d60
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140027aa0
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400d14f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d14ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d1736
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400d1547
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d1542
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d173c
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r13w
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
mov byte [rsi + 0x33358], al
lea rbx, [0x14021bb20]
lea r15, vtable.Window.0
lea r12, vtable.StaticDialog.0
lea rsi, vtable.Shortcut.0
lea r14, [0x14021d788]
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rsp + 0x60], xmm1
mov rax, qword [rsp + 0x60]
lea rdx, [0x1401e4278]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x1c], 0
mov word [rbp - 0x1a], r13w
xor r8d, r8d
lea rcx, [rbp - 0x50]
test rdx, rdx
jne 0x1400d15fa
lea rdx, [0x1401e4278]
call fcn.14011d370
movzx eax, byte [rsp + 0x58]
mov byte [rbp - 0x20], al
movzx eax, byte [rsp + 0x59]
mov byte [rbp - 0x1f], al
movzx eax, byte [rsp + 0x5a]
mov byte [rbp - 0x1e], al
movzx eax, byte [rsp + 0x50]
mov byte [rbp - 0x1d], al
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xf0]
call fcn.14011b5b0
mov r8, rax
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x1400d1656
mov rdx, r8
mov rcx, rax
call fcn.1400d0110
add qword [rdi + 8], 0x180
jmp 0x1400d1662
mov rdx, rax
mov rcx, rdi
call fcn.1400cf8a0
nop
lea rcx, [rbp + 0x250]
call fcn.1400068c0
nop
lea rcx, [rbp + 0x230]
call fcn.1400068c0
nop
lea rcx, [rbp + 0xf0]
call fcn.140129340
nop
lea rcx, [rbp - 0x50]
call fcn.140129340
add rbx, 0x18
cmp rbx, r14
jl 0x1400d15a0
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400e3ea0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400d16ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d16e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d1730
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
mov rax, rsi
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.14017f700
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1401a10ac
nop
call fcn.1401a10ac
nop
call fcn.1401a10ac
int3