Function at 0x1400f4afc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x498
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x4a0]
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0x3e0]
call fcn.1400eaf24
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x18
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.1400f49dc
lea rcx, [rsp + 0x3e0]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a0]
add rax, 0x30
mov rdx, rax
lea rcx, [rsp + 0x400]
call fcn.1400eaf24
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.1400f49dc
lea rcx, [rsp + 0x400]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a0]
add rax, 0x50
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.1400eaf24
nop
lea rcx, [rsp + 0x58]
call fcn.1400f45d4
nop
mov rax, qword [rsp + 0x4a0]
cmp dword [rax + 8], 2
jne 0x1400f4fb2
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov edx, 6
mov rcx, qword [rsp + 0x98]
call fcn.140024014
movzx eax, byte [rax]
test eax, eax
je 0x1400f4d7b
lea rdx, [0x1401dcbe0]
lea rcx, [rsp + 0x3a0]
call fcn.14001067c
nop
lea r8, [rsp + 0x3a0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x238]
call fcn.1400f3ccc
mov rcx, rax
call fcn.140008a8c
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xb0]
call fcn.140006408
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x1401dcbd0]
mov r8d, 1
xor edx, edx
lea rcx, [0x1401e4458]
call qword [rsp + 0xa8]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x3a0]
call fcn.140013cb0
cmp dword [rsp + 0x68], 0
jl 0x1400f4d7b
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov dl, 4
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.1400f4acc
mov byte [rsp + 0x34], al
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov r9b, byte [rsp + 0x34]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400f6270
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
jmp 0x1400f5690
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.14017de80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x150], rax
lea rax, [0x1400f5b30]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov edx, 6
mov rcx, qword [rsp + 0xc8]
call fcn.140024014
movzx eax, byte [rax]
test eax, eax
je 0x1400f4e30
lea rcx, [rsp + 0x58]
call fcn.1400f5d64
movzx eax, al
test eax, eax
je 0x1400f4e0e
mov eax, dword [rsp + 0x170]
or eax, 0x40
mov dword [rsp + 0x170], eax
mov eax, dword [rsp + 0x170]
or eax, 0x10
mov dword [rsp + 0x170], eax
mov eax, dword [rsp + 0x170]
or eax, 4
mov dword [rsp + 0x170], eax
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x2c0]
call fcn.140010ce0
nop
cmp qword [rsp + 0x70], 0
je 0x1400f4f5f
mov ecx, 0x208
call fcn.14017c96c
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rdx, [0x1401dcbf8]
lea rcx, [rsp + 0x2e0]
call fcn.14001067c
nop
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x230]
call fcn.1400f3ccc
mov rcx, rax
call fcn.140008a8c
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0xd8]
nop
lea rcx, [rsp + 0x2e0]
call fcn.140013cb0
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x300]
call fcn.1400f3b98
nop
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x420]
call fcn.1400eb06c
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x2c0]
call fcn.1400149bc
lea rcx, [rsp + 0x420]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x300]
call fcn.140013cd8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.14017c31c
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x4a8]
call fcn.14001056c
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2c0]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
jmp 0x1400f5690
mov r8d, 0x98
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.14017de80
mov dword [rsp + 0x190], 0x98
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x260]
call fcn.140023038
mov qword [rsp + 0x1a8], rax
xor r8d, r8d
mov edx, 0x10400
lea rcx, [rsp + 0x240]
call fcn.140010dfc
nop
lea rcx, [rsp + 0x240]
call fcn.140023038
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x240]
call fcn.1400240dc
mov dword [rsp + 0x1c8], eax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140023a30
movzx eax, al
test eax, eax
jne 0x1400f5154
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140023038
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x1400f50b0
mov eax, dword [rsp + 0x48]
and eax, 0x10
test eax, eax
je 0x1400f50b0
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140023038
mov qword [rsp + 0x1e0], rax
jmp 0x1400f5154
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.1400240dc
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x240]
call fcn.1400240dc
mov rcx, qword [rsp + 0xf0]
cmp rcx, rax
ja 0x1400f5117
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140023038
mov r8, rax
mov edx, 0x10401
mov rcx, qword [rsp + 0x1c0]
call fcn.1400f59dc
jmp 0x1400f5154
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140023038
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.1400240dc
mov dword [rsp + 0x1d8], eax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x18
mov rcx, rax
call fcn.140023038
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x1f0], 0x80008
lea rdx, str.comdlg32.dll
lea rcx, [rsp + 0x320]
call fcn.14001067c
nop
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x40]
call fcn.140012588
nop
lea rcx, [rsp + 0x320]
call fcn.140013cb0
lea rcx, [rsp + 0x50]
call fcn.140012de4
nop
mov rax, qword [rsp + 0x4a0]
cmp dword [rax + 8], 1
jne 0x1400f5361
mov dl, 2
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.1400f4acc
movzx eax, al
test eax, eax
jne 0x1400f51fa
mov eax, dword [rsp + 0x1f0]
or eax, 2
mov dword [rsp + 0x1f0], eax
lea rdx, str.GetSaveFileNameW
lea rcx, [rsp + 0x340]
call fcn.14001067c
nop
lea r8, [rsp + 0x340]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf8]
call fcn.1400f3ccc
nop
lea rcx, [rsp + 0x340]
call fcn.140013cb0
lea rcx, [rsp + 0xf8]
call fcn.140008a8c
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x190]
call qword [rsp + pe_nt_image_headers64]
test eax, eax
jne 0x1400f52c7
lea rdx, [0x1401cd5b0]
mov rcx, qword [rsp + 0x4a8]
call fcn.14001067c
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.140014734
nop
lea rcx, [rsp + 0x40]
call fcn.14001454c
nop
lea rcx, [rsp + 0x240]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
jmp 0x1400f5690
lea rcx, [rsp + 0x240]
call fcn.140023038
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.1400f3b98
nop
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400eb06c
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x360]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x50]
call fcn.140014734
nop
lea rcx, [rsp + 0x40]
call fcn.14001454c
nop
lea rcx, [rsp + 0x240]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
jmp 0x1400f5690
mov dl, 1
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.1400f4acc
movzx eax, al
test eax, eax
je 0x1400f538c
mov eax, dword [rsp + 0x1f0]
bts eax, 9
mov dword [rsp + 0x1f0], eax
mov eax, dword [rsp + 0x1f0]
bts eax, 0xb
mov dword [rsp + 0x1f0], eax
lea rdx, str.GetOpenFileNameW
lea rcx, [rsp + 0x380]
call fcn.14001067c
nop
lea r8, [rsp + 0x380]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x108]
call fcn.1400f3ccc
nop
lea rcx, [rsp + 0x380]
call fcn.140013cb0
lea rcx, [rsp + 0x108]
call fcn.140008a8c
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x190]
call qword [rsp + 0x110]
test eax, eax
jne 0x1400f546b
lea rdx, [0x1401cd5b0]
mov rcx, qword [rsp + 0x4a8]
call fcn.14001067c
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.140014734
nop
lea rcx, [rsp + 0x40]
call fcn.14001454c
nop
lea rcx, [rsp + 0x240]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
jmp 0x1400f5690
lea rcx, [rsp + 0x2a0]
call fcn.140010ce0
nop
lea rcx, [rsp + 0x240]
call fcn.140023038
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
test eax, eax
je 0x1400f561f
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x3c0]
call fcn.1400f3b98
nop
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x280]
call fcn.1400eb06c
nop
lea rcx, [rsp + 0x3c0]
call fcn.140013cd8
mov rcx, qword [rsp + 0x38]
call fcn.1401944a4
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x38], rax
mov dl, 1
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.1400f4acc
movzx eax, al
test eax, eax
je 0x1400f558d
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
test eax, eax
je 0x1400f558d
lea rcx, [rsp + 0x2a0]
call fcn.140023a30
movzx eax, al
test eax, eax
je 0x1400f558d
lea r8, [0x1401d6918]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x440]
call fcn.140050f60
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x2a0]
call fcn.1400149bc
lea rcx, [rsp + 0x440]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x280]
call fcn.140013cb0
jmp 0x1400f548b
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x58
mov qword [rsp + 0x138], rax
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x460]
call fcn.140050e78
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x138]
call fcn.1400658ec
nop
lea rcx, [rsp + 0x460]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x280]
call fcn.140013cb0
jmp 0x1400f548b
lea rdx, [0x1401cd5b0]
mov rcx, qword [rsp + 0x4a8]
call fcn.14001067c
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2a0]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x50]
call fcn.140014734
nop
lea rcx, [rsp + 0x40]
call fcn.14001454c
nop
lea rcx, [rsp + 0x240]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x58]
call fcn.1400f4914
nop
lea rcx, [rsp + 0x260]
call fcn.140013cd8
mov rax, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14017c920
add rsp, 0x498
ret