Function at 0x14006f020
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x250
mov rax, qword [0x140104200]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r14d, r14d
lea rax, [rsp + 0x30]
mov esi, 0x104
mov qword [r8], r14
mov r9d, esi
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r12, r8
nop
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14006f082
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14006f082
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14006f060
test r9, r9
lea rax, [rdx - 2]
mov rcx, rsi
cmovne rax, rdx
mov word [rax], r14w
lea rax, [rsp + 0x30]
nop dword [rax]
cmp word [rax], r14w
je 0x14006f0b0
add rax, 2
sub rcx, 1
jne 0x14006f0a0
mov rax, rsi
mov ebp, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14006f111
mov rdx, rsi
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x14006f102
lea r9, [0x1400e5200]
mov eax, ebp
sub r9, rcx
test rax, rax
je 0x14006f102
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x14006f102
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x14006f0e1
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov qword [rsp + 0x280], rbx
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x288], r15
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14006f164
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14006f3c6
mov rcx, qword [rsp + 0x278]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.14006eb60
mov r14d, eax
jmp 0x14006f3c6
xor edx, edx
mov dword [rsp + 0x24], r14d
mov rcx, rdi
mov r15d, r14d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14006f186
mov edx, 0x95
jmp 0x14006f262
test eax, eax
je 0x14006f19b
cmp eax, 0x102
je 0x14006f19b
mov edx, 0x96
jmp 0x14006f399
mov dword [rsp + 0x20], r14d
mov edx, 1
mov rcx, rdi
test eax, eax
jne 0x14006f1f8
lea r8, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14006f1c5
mov edx, 0x9e
jmp 0x14006f262
inc dword [rsp + 0x20]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14006f1ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
je 0x14006f288
mov edx, 0xa3
jmp 0x14006f399
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], r14d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14006f213
mov edx, 0xad
jmp 0x14006f262
cmp dword [rsp + 0x28], r14d
je 0x14006f224
mov edx, 0xae
jmp 0x14006f399
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14006f394
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
jne 0x14006f394
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14006f27a
mov edx, 0xb4
mov rcx, qword [rsp + 0x278]
call fcn.14006eb60
mov ebx, eax
test eax, eax
jns 0x14006f28d
jmp 0x14006f3ae
test eax, eax
je 0x14006f288
mov edx, 0xb5
jmp 0x14006f399
mov r15d, dword [rsp + 0x20]
mov rcx, rsi
lea rax, [rsp + 0x30]
cmp word [rax], r14w
je 0x14006f2a5
add rax, 2
sub rcx, 1
jne 0x14006f295
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14006f2fd
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rsi, rax
je 0x14006f2ee
lea rcx, [0x1400e523c]
sub rcx, rdx
nop dword [rax]
test rbp, rbp
je 0x14006f2ee
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14006f2ee
mov word [rdx], ax
dec rbp
add rdx, 2
sub rsi, 1
jne 0x14006f2d0
test rsi, rsi
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r14w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14006f330
mov rcx, qword [rsp + 0x278]
mov edx, 0xd5
call fcn.14006eb60
mov esi, eax
jmp 0x14006f3ce
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.14006ee90
mov esi, eax
test eax, eax
jns 0x14006f36b
mov rcx, qword [rsp + 0x278]
mov r9d, eax
mov edx, QISearch
call fcn.14006eb40
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14006f41f
jmp 0x14006f3ce
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14006f432
movsxd rcx, dword [rsp + 0x24]
mov esi, r14d
shl rcx, 0x1f
movsxd rax, r15d
or rcx, rax
mov qword [r12], rcx
jmp 0x14006f3ce
mov edx, 0xb1
mov rcx, qword [rsp + 0x278]
mov ebx, 0x8000ffff
mov r9d, ebx
call fcn.14006eb40
mov rcx, qword [rsp + 0x278]
mov r9d, ebx
mov edx, 0xcf
call fcn.14006eb40
mov r14d, ebx
mov esi, r14d
test rdi, rdi
je 0x14006f3db
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14006f40c
mov r15, qword [rsp + 0x288]
mov eax, esi
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140081690
add rsp, 0x250
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x278]
mov edx, 0x93e
call fcn.140025dd0
int3
mov rcx, qword [rsp + 0x278]
mov edx, 0x93e
call fcn.140025dd0
int3
mov rcx, qword [rsp + 0x278]
mov edx, 0x93e
call fcn.140025dd0
int3