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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r15d, r15d
cmp qword [rcx + 0x78], r15
je 0x140066ed3
cmp qword [rcx + 0x68], r15
jne 0x140066eea
cmp qword [rcx + 0x80], r15
je 0x140067169
cmp qword [rcx + 0x70], r15
je 0x140067169
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r15
mov word [rbp - 9], r15w
lea rcx, [rbp - 9]
call fcn.140065f64
test al, al
jne 0x140066f8c
cmp dword [0x140142444], 2
jb 0x140066f2f
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_get_temp_folder_path:_0x_x
mov ecx, 2
call fcn.14003929c
lea rcx, section..data
mov rax, qword [section..data]
cmp rax, rcx
je 0x140066f73
test byte [rax + 0x1c], 0x10
je 0x140066f73
cmp byte [rax + 0x19], 2
jb 0x140066f73
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, ntohs
lea r8, [0x1401040c8]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140067154
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140066fa9
test al, 0x10
jne 0x140066fb2
lea rcx, [rbp - 9]
call fcn.14003b0b0
lea rdx, [rbp + 0x17]
call fcn.1400667c4
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140008480
nop
cmp qword [rbp + 0x2f], 8
jb 0x140066fe1
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x11], rax
mov esi, r15d
mov r8, qword [rdi + 0x68]
test r8, r8
je 0x140067062
mov rcx, qword [rdi + 0x78]
mov rax, qword [rcx]
xor r9d, r9d
mov rdx, rbx
mov rax, qword [rax + 0x60]
call qword [0x1400f5e38]
mov esi, eax
mov rcx, qword [rdi + 0x68]
mov qword [rbp - 0x21], rcx
test rcx, rcx
je 0x14006703b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x78]
mov qword [rbp - 0x29], rcx
test rcx, rcx
je 0x140067055
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x29]
call fcn.14006727c
mov r8, qword [rdi + 0x70]
test r8, r8
je 0x1400670d6
mov rcx, qword [rdi + 0x80]
mov rax, qword [rcx]
xor r9d, r9d
mov rdx, rbx
mov rax, qword [rax + 0x68]
call qword [0x1400f5e38]
mov r14d, eax
test eax, eax
jns 0x1400670d0
mov rcx, qword [rdi + 0x70]
mov qword [rbp - 0x29], rcx
test rcx, rcx
je 0x1400670a6
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x80]
mov qword [rbp - 0x21], rcx
test rcx, rcx
je 0x1400670c3
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x21]
call fcn.14006727c
test esi, esi
cmovns esi, r14d
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x1400670f0
mov qword [rdi + 0x78], r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140067110
mov qword [rdi + 0x80], r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14006712a
mov qword [rdi + 0x68], r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x140067145
mov qword [rdi + 0x70], r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
nop
test rbx, rbx
je 0x140067154
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
cmp qword [rbp + 0xf], 8
jb 0x140067165
mov rcx, qword [rbp - 9]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, esi
jmp 0x14006716e
mov eax, 0x8000ffff
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret