Function at 0x1400d21f0
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 [0x1402a98a8]
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 0x1400d2286
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.1400d1db0
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.14019fd40
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 dword [rax + 0x7c], 0x100
mov word [rax + 0x80], 0
mov dword [rax + 0x84], r13d
mov dword [rax + 0x88], 1
mov dword [rax + 0x8c], 0x96
mov word [rax + 0x90], 0
mov byte [rax + 0x92], 0
mov byte [rsi + 0xe88], 0
mov qword [rsi + 0xea0], r13
mov qword [rsi + 0xea8], 7
mov word [rsi + 0xe90], r13w
mov qword [rsi + 0xec0], r13
mov qword [rsi + 0xec8], 7
mov word [rsi + 0xeb0], r13w
mov qword [rsi + 0xfc0], r13
mov byte [rsi + 0xfc8], 0
mov qword [rsi + 0xfcc], r13
mov dword [rsi + 0xfd4], r13d
mov dword [rsi + 0xfd8], 0x55
mov dword [rsi + 0xfdc], r14d
lea rbx, [rsi + 0xfe0]
mov qword [rsp + 0x30], rbx
lea rax, [0x140081380]
mov qword [rsp + 0x20], rax
lea r9, [0x14007f360]
mov edx, 0x7e8
lea r8d, [r14 + 0x65]
mov rcx, rbx
call fcn.140181e24
nop
mov dword [rbx + 0x316a0], r13d
lea rbx, [rsi + 0x32688]
mov qword [rsp + 0x30], rbx
lea rax, [0x14004e4a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400804d0]
lea edx, [r14 + 0x41]
lea r8d, [r14 + 0x1f]
mov rcx, rbx
call fcn.140181e24
nop
mov dword [rbx + 0x780], r13d
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
mov qword [rsi + 0x32e38], r13
lea rax, [rsi + 0x32e40]
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rsi + 0x32e58], r13
mov qword [rsi + 0x32e60], r13
mov qword [rsi + 0x32e68], r13
mov byte [rsi + 0x32e71], 0
mov qword [rsi + 0x32e88], r13
mov qword [rsi + 0x32e90], 7
mov word [rsi + 0x32e78], r13w
mov byte [rsi + 0x32e98], 0
lea rdi, [rsi + 0x32ea0]
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], 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
mov qword [rsi + 0x32f58], r13
lea rax, [rsi + 0x32f60]
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 + 0x32fc8], r13
mov qword [rsi + 0x32fd0], 7
mov word [rsi + 0x32fb8], r13w
mov word [rsi + 0x32fd8], 0
lea rax, [rsi + 0x32fe0]
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 + 0x33018], r13
mov qword [rsi + 0x33020], r13
mov qword [rsi + 0x33028], r13
lea rax, [rsi + 0x33030]
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 + 0x330c8], r13
mov qword [rsi + 0x330d0], 7
mov word [rsi + 0x330b8], r13w
mov qword [rsi + 0x330e8], r13
mov qword [rsi + 0x330f0], 7
mov word [rsi + 0x330d8], r13w
mov qword [rsi + 0x33108], r13
mov qword [rsi + 0x33110], 7
mov word [rsi + 0x330f8], r13w
mov qword [rsi + 0x33128], r13
mov qword [rsi + 0x33130], 7
mov word [rsi + 0x33118], r13w
lea r15, [rsi + 0x33138]
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 7
mov word [r15], r13w
mov qword [rsi + 0x33168], r13
mov qword [rsi + 0x33170], 7
mov word [rsi + 0x33158], r13w
mov qword [rsi + 0x33188], r13
mov qword [rsi + 0x33190], 7
mov word [rsi + 0x33178], r13w
lea rbx, [rsi + 0x33198]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov qword [rsi + 0x331c8], r13
mov qword [rsi + 0x331d0], 7
mov word [rsi + 0x331b8], r13w
mov qword [rsi + 0x331e8], r13
mov qword [rsi + 0x331f0], 7
mov word [rsi + 0x331d8], r13w
mov qword [rsi + 0x33208], r13
mov qword [rsi + 0x33210], 7
mov word [rsi + 0x331f8], r13w
mov qword [rsi + 0x33228], r13
mov qword [rsi + 0x33230], 7
mov word [rsi + 0x33218], r13w
lea rcx, [rsi + 0x33238]
lea rax, [fcn.140004630]
mov qword [rsp + 0x20], rax
lea r9, [fcn.140078320]
lea edx, [r14 + 0x21]
lea r8d, [r14 + 4]
call fcn.140181e24
nop
mov qword [rsi + 0x33298], r13
mov qword [rsi + 0x332a0], r13
mov qword [rsi + 0x332a8], r13
mov qword [rsi + 0x332c0], r13
mov qword [rsi + 0x332c8], 7
mov word [rsi + 0x332b0], r13w
lea rax, [rsi + 0x332e0]
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 qword [rax + 0x90], r13
mov qword [rax + 0x98], 7
mov word [rax + 0x80], r13w
mov byte [rsi + 0x33380], 0
mov qword [rsi + 0x33390], r13
mov qword [rsi + 0x333b0], r13
mov qword [rsi + 0x333b8], 7
mov word [rsi + 0x333a0], r13w
mov qword [rsi + 0x333d0], r13
mov qword [rsi + 0x333d8], 7
mov word [rsi + 0x333c0], r13w
mov qword [rsi + 0x333f0], r13
mov qword [rsi + 0x333f8], 7
mov word [rsi + 0x333e0], r13w
mov qword [rsi + 0x33410], r13
mov qword [rsi + 0x33418], 7
mov word [rsi + 0x33400], r13w
mov word [rsi + 0x33420], 0
mov rcx, rsi
call fcn.1400e5050
mov dword [rsi + 0x33384], 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 0x1400d29a0
lea rdx, [rbp + 0x270]
mov rcx, r15
call fcn.140006d70
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 0x1400d29d3
mov r8, r14
lea rdx, [rbp + 0x480]
lea rcx, [rsi + 0x33218]
call fcn.140006d70
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x1400d2a02
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 0x1400d2a1c
mov r15, qword [r15]
cmp r14, 8
jae 0x1400d2a35
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], 7
jmp 0x1400d2a77
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.1400069a0
mov qword [rsp + 0x70], rax
lea r8, [r14*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.14019f8d0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], r13w
mov r8d, InitCommonControls
lea rdx, str.asNotepad.xml
lea rcx, [rsp + 0x50]
call fcn.140006d70
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140027b00
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400d2b03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2afe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d2d46
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400d2b57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2b52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d2d4c
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
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 + 0x33380], al
lea rbx, [0x14021e290]
lea r15, vtable.Window.0
lea r12, vtable.StaticDialog.0
lea rsi, vtable.Shortcut.0
lea r14, [0x14021fef8]
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, [0x1401e6278]
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 0x1400d2c0a
lea rdx, [0x1401e6278]
call fcn.14011ede0
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.14011d020
mov r8, rax
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x1400d2c66
mov rdx, r8
mov rcx, rax
call fcn.1400d16f0
add qword [rdi + 8], 0x180
jmp 0x1400d2c72
mov rdx, rax
mov rcx, rdi
call fcn.1400d0dc0
nop
lea rcx, [rbp + 0x250]
call fcn.1400068d0
nop
lea rcx, [rbp + 0x230]
call fcn.1400068d0
nop
lea rcx, [rbp + 0xf0]
call fcn.14012b010
nop
lea rcx, [rbp - 0x50]
call fcn.14012b010
add rbx, 0x18
cmp rbx, r14
jl 0x1400d2bb0
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400e55c0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400d2cfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2cf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d2d40
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
mov rax, rsi
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1401813e0
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.1401a2d8c
nop
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
int3