Function at 0x140035778
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 [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r9
mov qword [rsp + 0x58], rbx
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov edi, eax
mov rcx, qword [rsp + 0x40]
test eax, eax
js 0x1400359c3
test rcx, rcx
je 0x1400359c3
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x140075188]
call qword [rax]
mov edi, eax
test eax, eax
js 0x1400359be
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400359be
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x38], r13
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x70]
mov edi, eax
test eax, eax
js 0x14003585c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140035861
mov rax, qword [rcx]
call qword [rax + VarBstrCmp]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0xd8]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003585c
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003586c
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 0x1400359be
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 0x1400359a0
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140035abd
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 0x14003591c
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 0x140035aa6
mov qword [rsp + 0x50], r14
xor r13d, r13d
test r14, r14
je 0x140035aaf
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140035a0b
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 0x140035a7e
test eax, eax
jns 0x140035971
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
test edi, edi
cmovns rsi, r15
mov r15, rsi
mov rsi, r12
test rcx, rcx
je 0x14003598e
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 0x140035880
cmp byte [rsp + 0x30], r13b
je 0x1400359be
mov eax, 0x80004005
cmp edi, 0x80070002
cmovne edi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400359cf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400359df
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 0x14003595a
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
mov r8, rbx
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_SetErrorInfo]
mov edi, eax
test eax, eax
js 0x14003595a
test r15, r15
jne 0x140035a45
mov rax, qword [rsp + 0x58]
mov qword [rax], r12
jmp 0x140035a49
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 + 0x38]
test rcx, rcx
je 0x140035976
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + VarBstrCmp]
jmp 0x140035971
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140035a8f
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 0x1400359a9
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, 0x8007000e
call fcn.1400312f0
nop
jmp 0x140035abc
nop
mov ecx, 0x8007000e
call fcn.1400312f0
int3