Function at 0x140060f20
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov qword [rsp + 0x40], rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r14, qword [rdx]
mov ebp, 3
cmp r14, 0x10
jb 0x1400611cb
mov r12, qword [rdx + 8]
mov r15d, dword [r12]
cmp r15, 0x10
jb 0x1400611cb
mov rax, r14
sub rax, r15
jb 0x1400611cb
mov edi, dword [r12 + 8]
shr rax, 3
cmp rax, rdi
jb 0x1400611cb
lea rsi, [r15 + rdi*8]
sub r14, rsi
jb 0x140061438
mov r13, r9
mov al, byte [r12 + 0xc]
mov byte [rsp + 0x3f], al
movaps xmm0, xmmword [0x14047fb40]
lea rcx, [rsp + 0x128]
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
mov r8, rdi
call fcn.140237d10
mov qword [rsp + 0x58], rdi
test rdi, rdi
mov qword [rsp + 0x60], rsi
je 0x1400613ae
add r15, r12
mov rax, qword [rsp + 0x40]
lea rbx, [rax + 0x20]
xor edi, edi
xor esi, esi
mov qword [rsp + 0x50], rbx
mov rbp, qword [r15 + rsi*8]
cmp byte [rsp + 0x3f], 1
jne 0x140061257
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x1c], 0
je 0x14006101c
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x41], 0
je 0x1400614c8
mov qword [rsp + 0x120], 0
test rbp, rbp
je 0x140061073
mov rbx, r14
mov r14, r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rax, qword [rsp + 0x120]
inc rax
cmp rax, 2
jae 0x14006138b
cmp rbp, 0xffffffffffffffff
je 0x140061064
mov qword [rsp + 0x120], rbp
call fcn.14026d530
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r13, r14
mov r14, rbx
lea rcx, [rsp + 0x108]
lea rdx, [rsp + 0x120]
call fcn.140275110
mov rax, qword [rsp + 0x128]
mov rcx, rax
shr rcx, 1
cmp rcx, rsi
lea rbp, [rsp + 0x130]
jbe 0x140061436
mov rbx, r13
mov rcx, rbp
test al, 1
je 0x1400610b9
mov rcx, qword [rsp + 0x130]
add rcx, rdi
lea r13, [rsp + 0x108]
mov rdx, r13
call fcn.140275080
mov rcx, r13
call fcn.1402751c0
mov rax, qword [rsp + 0x128]
mov r11, rax
shr r11, 1
cmp r11, rsi
jbe 0x140061436
mov r8, rax
and r8, 1
mov rdx, qword [rsp + 0x130]
mov r9, rdx
cmove r9, rbp
mov r9, qword [r9 + rdi + 8]
inc r9
cmp r9, 2
jb 0x1400613d0
mov r13, rbx
inc rsi
add rdi, 0x10
cmp qword [rsp + 0x58], rsi
mov rbx, qword [rsp + 0x50]
jne 0x140060ff3
test r8, r8
lea r10, [rsp + 0x130]
cmovne r10, rdx
mov edx, dword [r12 + 4]
mov ebp, SafeArrayDestroy
cmp rdx, 5
ja case.0x14006115f.2
add r12, qword [rsp + 0x60]
lea r8, [0x14048fd4c]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
lea r8, [rsp + 0x78]
mov qword [r8], r11
mov qword [r8 + 8], r10
lea rdx, [rsp + 0x68]
mov qword [rdx], r14
mov qword [rdx + 8], r12
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.14005dbb0
mov rax, qword [rdi]
mov qword [rdi], 0
mov rcx, qword [r13]
mov qword [r13], rax
test rcx, rcx
jne 0x1400613ec
xor eax, eax
cmp qword [r13], 0
sete al
lea ebp, [rax + rax*2]
mov rax, qword [rsp + 0x128]
test rax, rax
je 0x1400611cb
lea rcx, [rsp + 0x128]
call fcn.140237c70
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebp
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rsp + 0xd8]
mov qword [r8], r11
mov qword [r8 + 8], r10
lea rdx, [rsp + 0xc8]
mov qword [rdx], r14
mov qword [rdx + 8], r12
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.140060240
jmp 0x140061189
lea r8, [rsp + 0x98]
mov qword [r8], r11
mov qword [r8 + 8], r10
lea rdx, [rsp + 0x88]
mov qword [rdx], r14
mov qword [rdx + 8], r12
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.140061c30
jmp 0x140061189
mov qword [rsp + 0x48], r13
mov rcx, rbx
call fcn.1402544f0
test al, al
je 0x1400613da
mov qword [rsp + 0x120], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r13, rax
mov rcx, rbx
call fcn.140254510
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbp
mov r8, r13
lea r9, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r13, qword [rsp + 0x120]
mov qword [rsp + 0x118], 0
test r13, r13
je 0x140061307
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsp + 0x118]
inc rax
cmp rax, 2
jae 0x140061368
lea rax, [r13 + 1]
cmp rax, 2
jb 0x1400612ff
mov qword [rsp + 0x118], r13
call fcn.14026d530
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x108]
lea rdx, [rsp + 0x118]
call fcn.140275110
mov r13, qword [rsp + 0x48]
jmp 0x140061088
lea r9, [rsp + 0xf8]
mov qword [r9], r11
mov qword [r9 + 8], r10
lea r8, [rsp + 0xe8]
mov qword [r8], r14
mov qword [r8 + 8], r12
lea rbx, [rsp + 0x108]
mov rcx, rbx
mov rdx, qword [rsp + 0x40]
call fcn.1400614f0
mov rax, qword [rbx]
mov qword [rbx], 0
jmp 0x140061193
call fcn.14026d530
mov rcx, qword [rsp + 0x118]
call fcn.140252540
mov qword [rsp + 0x118], 0
jmp 0x1400612e8
call fcn.14026d530
mov rcx, qword [rsp + 0x120]
call fcn.140252540
mov qword [rsp + 0x120], 0
jmp 0x140061051
mov rax, qword [rsp + 0x128]
mov rdx, qword [rsp + 0x130]
mov r11, rax
shr r11, 1
mov r8d, eax
and r8d, 1
jmp 0x14006112d
mov ebp, 3
jmp case.0x14006115f.2
lea rcx, [rsp + 0x108]
call fcn.140274fd0
jmp 0x14006131c
lock dec dword [rcx + 8]
jne 0x140061404
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [case.0x14012d181.0]
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x1400611a4
lock dec dword [rcx + 8]
jne 0x1400611a4
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [case.0x14012d181.0]
jmp 0x1400611a4
ud2
int3
lea r8, [rsp + 0xb8]
mov qword [r8], r11
mov qword [r8 + 8], r10
lea rdx, [rsp + 0xa8]
mov qword [rdx], r14
mov qword [rdx + 8], r12
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.1403398c0
mov rax, qword [rdi]
mov qword [rdi], 0
mov rcx, qword [r13]
mov rsi, r13
mov qword [r13], rax
test rcx, rcx
je 0x1400614c0
lock dec dword [rcx + 8]
jne 0x14006149b
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [case.0x14012d181.0]
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x1400614c0
lock dec dword [rcx + 8]
jne 0x1400614c0
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov edx, 1
call qword [case.0x14012d181.0]
mov r13, rsi
jmp 0x1400611a4
mov rcx, qword [rsp + 0x50]
call fcn.14007fce0
test al, al
jne 0x14006101c
lea rcx, [rsp + 0x108]
call fcn.140274fd0
jmp 0x140061088