Function at 0x140104adc
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 [0x1402436d8]
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.1400fac60
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.1400f5df8
lea rcx, [rsp + 0x3e0]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a0]
add rax, 0x30
mov rdx, rax
lea rcx, [rsp + 0x400]
call fcn.1400fac60
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.1400f5df8
lea rcx, [rsp + 0x400]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a0]
add rax, 0x50
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.1400fac60
nop
lea rcx, [rsp + 0x58]
call fcn.140104634
nop
mov rax, qword [rsp + 0x4a0]
cmp dword [rax + 8], 2
jne 0x140104f92
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov edx, 6
mov rcx, qword [rsp + 0x98]
call fcn.140026cc8
movzx eax, byte [rax]
test eax, eax
je 0x140104d5b
lea rdx, [0x1401e3a98]
lea rcx, [rsp + 0x3a0]
call fcn.1400127e0
nop
lea r8, [rsp + 0x3a0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x238]
call fcn.140103d38
mov rcx, rax
call fcn.140009d28
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xb0]
call fcn.14000824c
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x1401e3a88]
mov r8d, 1
xor edx, edx
lea rcx, [0x1402060f8]
call qword [rsp + 0xa8]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x3a0]
call fcn.140015f78
cmp dword [rsp + 0x68], 0
jl 0x140104d5b
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.140104aac
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.140106270
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
jmp 0x140105670
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140183b90
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x150], rax
lea rax, [0x140105ba0]
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.140026cc8
movzx eax, byte [rax]
test eax, eax
je 0x140104e10
lea rcx, [rsp + 0x58]
call fcn.140105d9c
movzx eax, al
test eax, eax
je 0x140104dee
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.140012ea4
nop
cmp qword [rsp + 0x70], 0
je 0x140104f3f
mov ecx, 0x208
call fcn.1401825fc
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, [0x1401e3ab0]
lea rcx, [rsp + 0x2e0]
call fcn.1400127e0
nop
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x230]
call fcn.140103d38
mov rcx, rax
call fcn.140009d28
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0xd8]
nop
lea rcx, [rsp + 0x2e0]
call fcn.140015f78
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x300]
call fcn.140103c34
nop
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x420]
call fcn.1400fada8
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x2c0]
call fcn.140016c84
lea rcx, [rsp + 0x420]
call fcn.140015f78
nop
lea rcx, [rsp + 0x300]
call fcn.140015fa0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140181fa8
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400126c8
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2c0]
call fcn.140015f78
nop
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
jmp 0x140105670
mov r8d, 0x98
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.140183b90
mov dword [rsp + 0x190], 0x98
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x260]
call fcn.140025c98
mov qword [rsp + 0x1a8], rax
xor r8d, r8d
mov edx, 0x10400
lea rcx, [rsp + 0x240]
call fcn.140012ff8
nop
lea rcx, [rsp + 0x240]
call fcn.140025c98
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x240]
call fcn.140026d90
mov dword [rsp + 0x1c8], eax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.1400266a4
movzx eax, al
test eax, eax
jne 0x140105134
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140025c98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x140105090
mov eax, dword [rsp + 0x48]
and eax, 0x10
test eax, eax
je 0x140105090
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140025c98
mov qword [rsp + 0x1e0], rax
jmp 0x140105134
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140026d90
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x240]
call fcn.140026d90
mov rcx, qword [rsp + 0xf0]
cmp rcx, rax
ja 0x1401050f7
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140025c98
mov r8, rax
mov edx, 0x10401
mov rcx, qword [rsp + 0x1c0]
call fcn.1401059bc
jmp 0x140105134
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140025c98
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x38
mov rcx, rax
call fcn.140026d90
mov dword [rsp + 0x1d8], eax
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax]
add rax, 0x18
mov rcx, rax
call fcn.140025c98
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x1f0], 0x80008
lea rdx, str.comdlg32.dll
lea rcx, [rsp + 0x320]
call fcn.1400127e0
nop
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x40]
call fcn.1400149a4
nop
lea rcx, [rsp + 0x320]
call fcn.140015f78
lea rcx, [rsp + 0x50]
call fcn.1400150e8
nop
mov rax, qword [rsp + 0x4a0]
cmp dword [rax + 8], 1
jne 0x140105341
mov dl, 2
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.140104aac
movzx eax, al
test eax, eax
jne 0x1401051da
mov eax, dword [rsp + 0x1f0]
or eax, 2
mov dword [rsp + 0x1f0], eax
lea rdx, str.GetSaveFileNameW
lea rcx, [rsp + 0x340]
call fcn.1400127e0
nop
lea r8, [rsp + 0x340]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf8]
call fcn.140103d38
nop
lea rcx, [rsp + 0x340]
call fcn.140015f78
lea rcx, [rsp + 0xf8]
call fcn.140009d28
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x190]
call qword [rsp + pe_nt_image_headers64]
test eax, eax
jne 0x1401052a7
lea rdx, [0x1401d35a8]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400127e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.1400169fc
nop
lea rcx, [rsp + 0x40]
call fcn.140016814
nop
lea rcx, [rsp + 0x240]
call fcn.140015fa0
nop
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
jmp 0x140105670
lea rcx, [rsp + 0x240]
call fcn.140025c98
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.140103c34
nop
lea rdx, [rsp + 0x360]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400fada8
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x360]
call fcn.140015fa0
nop
lea rcx, [rsp + 0x50]
call fcn.1400169fc
nop
lea rcx, [rsp + 0x40]
call fcn.140016814
nop
lea rcx, [rsp + 0x240]
call fcn.140015fa0
nop
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
jmp 0x140105670
mov dl, 1
mov rax, qword [rsp + 0x4a0]
mov cl, byte [rax + 0x70]
call fcn.140104aac
movzx eax, al
test eax, eax
je 0x14010536c
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.1400127e0
nop
lea r8, [rsp + 0x380]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x108]
call fcn.140103d38
nop
lea rcx, [rsp + 0x380]
call fcn.140015f78
lea rcx, [rsp + 0x108]
call fcn.140009d28
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x190]
call qword [rsp + 0x110]
test eax, eax
jne 0x14010544b
lea rdx, [0x1401d35a8]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400127e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.1400169fc
nop
lea rcx, [rsp + 0x40]
call fcn.140016814
nop
lea rcx, [rsp + 0x240]
call fcn.140015fa0
nop
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
jmp 0x140105670
lea rcx, [rsp + 0x2a0]
call fcn.140012ea4
nop
lea rcx, [rsp + 0x240]
call fcn.140025c98
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
test eax, eax
je 0x1401055ff
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x3c0]
call fcn.140103c34
nop
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x280]
call fcn.1400fada8
nop
lea rcx, [rsp + 0x3c0]
call fcn.140015fa0
mov rcx, qword [rsp + 0x38]
call fcn.14018f200
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.140104aac
movzx eax, al
test eax, eax
je 0x14010556d
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 0x14010556d
lea rcx, [rsp + 0x2a0]
call fcn.1400266a4
movzx eax, al
test eax, eax
je 0x14010556d
lea r8, [0x1401dd128]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x440]
call fcn.14007465c
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x2a0]
call fcn.140016c84
lea rcx, [rsp + 0x440]
call fcn.140015f78
nop
lea rcx, [rsp + 0x280]
call fcn.140015f78
jmp 0x14010546b
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.14005c5f0
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.140069628
nop
lea rcx, [rsp + 0x460]
call fcn.140015f78
nop
lea rcx, [rsp + 0x280]
call fcn.140015f78
jmp 0x14010546b
lea rdx, [0x1401d35a8]
mov rcx, qword [rsp + 0x4a8]
call fcn.1400127e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x2a0]
call fcn.140015f78
nop
lea rcx, [rsp + 0x50]
call fcn.1400169fc
nop
lea rcx, [rsp + 0x40]
call fcn.140016814
nop
lea rcx, [rsp + 0x240]
call fcn.140015fa0
nop
lea rcx, [rsp + 0x58]
call fcn.140104974
nop
lea rcx, [rsp + 0x260]
call fcn.140015fa0
mov rax, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x498
ret