Function at 0x140006bc0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14032b320]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r13, r8
xor r14d, r14d
mov qword [r8], r14
mov edi, 0x104
mov r9d, edi
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub rcx, rax
nop word [rax + rax]
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140006c42
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140006c42
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140006c20
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r14w
mov rcx, rdi
lea rax, [rsp + 0x40]
nop dword [rax]
cmp word [rax], r14w
je 0x140006c70
add rax, 2
sub rcx, 1
jne 0x140006c60
mov rax, rdi
sub rax, rcx
test rcx, rcx
cmove rax, r14
mov esi, 0x7ffffffe
je 0x140006cd1
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
je 0x140006cc2
mov eax, esi
lea r9, [0x1402a8660]
sub r9, rcx
test rax, rax
je 0x140006cc2
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x140006cc2
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140006ca1
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140006d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006f85
mov rcx, qword [rbp + 0x188]
mov edx, 0xc9
call fcn.1400066b0
mov r14d, eax
jmp 0x140006f85
mov r12d, r14d
mov dword [rsp + 0x24], r14d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140006d3a
mov edx, 0x95
jmp 0x140006e16
test eax, eax
je 0x140006d4f
cmp eax, 0x102
je 0x140006d4f
mov edx, 0x96
jmp 0x140006f5a
mov dword [rsp + 0x20], r14d
mov edx, 1
mov rcx, r15
test eax, eax
jne 0x140006dac
lea r8, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140006d79
mov edx, LoadRegTypeLib
jmp 0x140006e16
inc dword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140006da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x140006e3b
mov edx, reloc.OLEAUT32.dll_QueryPathOfRegTypeLib
jmp 0x140006f5a
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140006dc7
mov edx, VarDecAdd
jmp 0x140006e16
cmp dword [rsp + 0x28], r12d
je 0x140006dd8
mov edx, VarDecAdd
jmp 0x140006f5a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140006f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x140006f55
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140006e2d
mov edx, VariantTimeToSystemTime
mov rcx, qword [rbp + 0x188]
call fcn.1400066b0
mov ebx, eax
test eax, eax
jns 0x140006e40
jmp 0x140006f6e
test eax, eax
je 0x140006e3b
mov edx, VariantTimeToSystemTime
jmp 0x140006f5a
mov r12d, dword [rsp + 0x20]
mov rcx, rdi
lea rax, [rsp + 0x40]
cmp word [rax], 0
je 0x140006e58
add rax, 2
sub rcx, 1
jne 0x140006e48
mov rax, rdi
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x140006ead
sub rdi, rax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rax*2]
je 0x140006e9e
lea rcx, [0x1402a8668]
sub rcx, rdx
nop
test rsi, rsi
je 0x140006e9e
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140006e9e
mov word [rdx], ax
add rdx, 2
dec rsi
sub rdi, 1
jne 0x140006e80
lea rax, [rdx - 2]
test rdi, rdi
cmovne rax, rdx
mov word [rax], r14w
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140006ee1
mov rcx, qword [rbp + 0x188]
mov edx, 0xd5
call fcn.1400066b0
mov ebx, eax
jmp 0x140006f09
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.140006a30
mov ebx, eax
test eax, eax
jns 0x140006f28
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd7
call fcn.140006690
nop
test rdi, rdi
je 0x140006f88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140006fde
jmp 0x140006f88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140006fe9
movsxd rcx, dword [rsp + 0x24]
shl rcx, 0x1f
movsxd rax, r12d
or rax, rcx
mov qword [r13], rax
jmp 0x140006f85
mov edx, 0xb1
mov ebx, 0x8000ffff
mov r9d, ebx
mov rcx, qword [rbp + 0x188]
call fcn.140006690
mov rcx, qword [rbp + 0x188]
mov r9d, ebx
mov edx, 0xcf
call fcn.140006690
mov r14d, ebx
mov ebx, r14d
test r15, r15
je 0x140006f9a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140006fcc
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14023ba10
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rbp + 0x188]
mov edx, 0x93e
call fcn.1400066d0
nop
mov edx, 0x93e
call fcn.1400066d0
int3
mov edx, 0x93e
call fcn.1400066d0
int3