Function at 0x14004cdd0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x938
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.14000b510
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14004f730
mov qword [rsp + 0x98], rax
mov r8d, 0x104
lea rdx, [rsp + 0x720]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x41]
call fcn.14000b9c0
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14004f830
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x2f8]
call fcn.140006e00
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x14004ce9c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xd0]
call fcn.14004cad0
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x2a0]
call fcn.140006d50
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x2f8]
call fcn.14004c520
lea rcx, [rsp + 0x2a0]
call fcn.140051aa0
movzx eax, al
test eax, eax
je 0x14004d89e
xor ecx, ecx
call fcn.140064ed4
nop
lea rax, [rsp + 0x320]
lea rcx, str.C:Program_Files
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x331]
mov rdi, rax
xor eax, eax
mov ecx, 0xf3
rep stosb byte [rdi], al
lea rdx, str.MyApp
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x14004cfd3
lea rdx, str.Appended_Path:
lea rcx, [0x1400a5840]
call fcn.1400012d0
lea rdx, [rsp + 0x320]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0xe0], rax
lea rax, [0x140005320]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe0]
call qword [rsp + 0xe8]
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14004d02e
lea rdx, str.Path_exists:
lea rcx, [0x1400a5840]
call fcn.1400012d0
lea rdx, [rsp + 0x320]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0xf0], rax
lea rax, [0x140005320]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf0]
call qword [rsp + 0xf8]
lea rax, [0x14008a5c0]
mov qword [rsp + 0x100], rax
lea rax, str.World
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x14004d0b0
lea rdx, str.Found_substring:
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x108], rax
lea rax, [0x140005320]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x108]
call qword [rsp + 0x110]
lea rax, [rsp + 0x490]
lea rcx, str.C:Program_FilesMyAppmyfile.txt
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4b2]
mov rdi, rax
xor eax, eax
mov ecx, 0xe2
rep stosb byte [rdi], al
lea rcx, [rsp + 0x490]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, str.Path_without_file:
lea rcx, [0x1400a5840]
call fcn.1400012d0
lea rdx, [rsp + 0x490]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x118], rax
lea rax, [0x140005320]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x120]
lea rax, str.hello
mov qword [rsp + 0x130], rax
lea rax, str.HELLO
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14004d1a8
lea rdx, str.Strings_are_equal__case_insensitive_
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x138], rax
lea rax, [0x140005320]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x138]
call qword [rsp + 0x140]
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x14004d203
lea rdx, str.This_is_a_directory:
lea rcx, [0x1400a5840]
call fcn.1400012d0
lea rdx, [rsp + 0x320]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x148], rax
lea rax, [0x140005320]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x148]
call qword [rsp + 0x150]
lea rax, [rsp + 0x2c0]
lea rcx, str.Hello
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2c6]
mov rdi, rax
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
lea rdx, str.__World_
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.Concatenated_string:
lea rcx, [0x1400a5840]
call fcn.1400012d0
lea rdx, [rsp + 0x2c0]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x158], rax
lea rax, [0x140005320]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x158]
call qword [rsp + 0x160]
lea rax, str.document.txt
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov qword [rsp + 0x168], rax
lea rdx, str.File_extension:
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov rdx, qword [rsp + 0x168]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x170], rax
lea rax, [0x140005320]
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x170]
call qword [rsp + 0x178]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x14004d34e
lea rdx, str.The_path_is_relative:
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x180], rax
lea rax, [0x140005320]
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x180]
call qword [rsp + 0x188]
lea rax, str.Hello__World_
mov qword [rsp + 0x298], rax
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
lea rcx, [0x14008de68]
call sub.dxgi.dll_CreateDXGIFactory
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d3bb
lea rdx, str.DXGI_Factory_created_successfully.
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x190], rax
lea rax, [0x140005320]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x190]
call qword [rsp + 0x198]
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x1a0], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x1a0]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d467
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x1a8], rax
lea rdx, [rsp + 0x5f0]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x1a8]
lea rdx, str.Adapter_Description:
lea rcx, [0x1400a5960]
call fcn.140001890
lea rdx, [rsp + 0x5f0]
mov rcx, rax
call fcn.140001890
mov qword [rsp + 0x1b0], rax
lea rax, [0x140005380]
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rsp + 0x1b0]
call qword [rsp + 0x1b8]
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x1c0], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x1c0]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d513
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x1c8], rax
lea rdx, [rsp + 0x430]
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x1c8]
lea rdx, str.Output_Device_Name:
lea rcx, [0x1400a5960]
call fcn.140001890
lea rdx, [rsp + 0x430]
mov rcx, rax
call fcn.140001890
mov qword [rsp + 0x1d0], rax
lea rax, [0x140005380]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d0]
call qword [rsp + 0x1d8]
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x5a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
cmp qword [rsp + 0x28], 0
je 0x14004d5e3
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x1e0], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x1e0]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d5e3
lea rdx, str.Fullscreen_state:
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x1e8], rax
cmp dword [rsp + 0x60], 0
je 0x14004d59f
lea rax, str.Enabled
mov qword [rsp + 0x70], rax
jmp 0x14004d5ab
lea rax, str.Disabled
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x1e8]
call fcn.1400012d0
mov qword [rsp + 0x1f0], rax
lea rax, [0x140005320]
mov qword [rsp + 0x1f8], rax
mov rcx, qword [rsp + 0x1f0]
call qword [rsp + 0x1f8]
lea rax, [rsp + 0x270]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x270], 0x780
mov dword [rsp + 0x274], 0x438
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x200], rax
xor r9d, r9d
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x200]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d6ba
lea rdx, str.Refresh_rate:
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x208], rax
xor edx, edx
mov eax, dword [rsp + 0x278]
div dword [rsp + 0x27c]
mov edx, eax
mov rcx, qword [rsp + 0x208]
call fcn.140009a60
lea rdx, [0x14008a7b4]
mov rcx, rax
call fcn.1400012d0
mov qword [rsp + 0x210], rax
lea rax, [0x140005320]
mov qword [rsp + 0x218], rax
mov rcx, qword [rsp + 0x210]
call qword [rsp + 0x218]
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x290], 0
mov qword [rsp + 0x220], 0
cmp qword [rsp + 0x28], 0
je 0x14004d758
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x228], rax
lea r8, [rsp + 0x220]
lea rdx, [0x14008de68]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x228]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d758
lea rdx, str.Factory_obtained_from_swap_chain.
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x230], rax
lea rax, [0x140005320]
mov qword [rsp + 0x238], rax
mov rcx, qword [rsp + 0x230]
call qword [rsp + 0x238]
cmp qword [rsp + 0x28], 0
je 0x14004d7cc
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x240], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x240]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d7cc
lea rdx, str.Switched_to_fullscreen_mode.
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x248], rax
lea rax, [0x140005320]
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x248]
call qword [rsp + 0x250]
cmp qword [rsp + 0x28], 0
je 0x14004d83d
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x258], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x258]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x14004d83d
lea rdx, str.Switched_back_to_windowed_mode.
lea rcx, [0x1400a5840]
call fcn.1400012d0
mov qword [rsp + 0x260], rax
lea rax, [0x140005320]
mov qword [rsp + 0x268], rax
mov rcx, qword [rsp + 0x260]
call qword [rsp + 0x268]
cmp qword [rsp + 0x30], 0
je 0x14004d855
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [rax + 0x10]
cmp qword [rsp + 0x38], 0
je 0x14004d86d
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x10]
cmp qword [rsp + 0x48], 0
je 0x14004d885
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x10]
cmp qword [rsp + 0x28], 0
je 0x14004d89e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x2a0]
call fcn.14004c520
add rsp, 0x938
pop rdi
pop rsi
ret