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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r9
mov qword [rsp + 0x38], rbx
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov edi, eax
mov rcx, qword [rsp + 0x58]
test eax, eax
js 0x14003717f
test rcx, rcx
je 0x14003717f
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x1400781d8]
call qword [rax]
mov edi, eax
test eax, eax
js 0x14003717a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003717a
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x70]
mov edi, eax
test eax, eax
js 0x140037018
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003701d
mov rax, qword [rcx]
call qword [rax + VarBstrCmp]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0xd8]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140037018
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140037028
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov byte [rsp + 0x30], r13b
mov r15, r13
mov rsi, qword [rbx]
test rsi, rsi
je 0x14003717a
mov r12, qword [rsi + 0x28]
mov r8d, 0x104
mov rdx, qword [rsi]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
test rax, rax
je 0x14003715c
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140037279
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
or r9d, 0xffffffff
lea r8, str.7651A703_06E5_11D1_8EBD_00A0C90F26EA
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, eax
lea edx, [rax - 1]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r14, rax
test rax, rax
je 0x1400370d8
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, str.7651A703_06E5_11D1_8EBD_00A0C90F26EA
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r13d
jne 0x140037262
mov qword [rsp + 0x48], r14
xor r13d, r13d
test r14, r14
je 0x14003726b
mov qword [rsp + 0x50], r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400371c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
cmp edi, 0x80070002
je 0x14003723a
test eax, eax
jns 0x14003712d
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x50]
test edi, edi
cmovns rsi, r15
mov r15, rsi
mov rsi, r12
test rcx, rcx
je 0x14003714a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
jne 0x14003703c
cmp byte [rsp + 0x30], r13b
je 0x14003717a
mov eax, 0x80004005
cmp edi, 0x80070002
cmovne edi, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003718b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003719b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 0x10
jne 0x140037116
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8, rbx
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_SetErrorInfo]
mov edi, eax
test eax, eax
js 0x140037116
test r15, r15
jne 0x140037201
mov rax, qword [rsp + 0x38]
mov qword [rax], r12
jmp 0x140037205
mov qword [r15 + 0x28], r12
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, r13
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140037132
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + VarBstrCmp]
jmp 0x14003712d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003724b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140037165
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, 0x8007000e
call fcn.1400327c0
nop
jmp 0x140037278
nop
mov ecx, 0x8007000e
call fcn.1400327c0
int3