Function at 0x14007e260
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r13, r9
mov qword [rsp + 0x30], r8
movzx r12d, dl
mov r10, rcx
test r9, r9
je 0x14007e2a1
mov byte [r9], 0
xor r14d, r14d
mov qword [r8], r14
mov esi, 0x104
mov edx, esi
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub r10, rax
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14007e2e3
movzx eax, word [r10 + rcx]
test ax, ax
je 0x14007e2e3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14007e2c0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rsi
lea rax, [rsp + 0x40]
nop word [rax + rax]
cmp word [rax], r14w
je 0x14007e310
add rax, 2
sub rcx, 1
jne 0x14007e300
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
mov ebp, 0x7ffffffe
je 0x14007e371
mov rdx, rsi
sub rdx, rax
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
je 0x14007e362
mov eax, ebp
lea r9, [0x140274848]
sub r9, rcx
test rax, rax
je 0x14007e362
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x14007e362
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x14007e341
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 rdi, rax
test rax, rax
setne byte [rsp + 0x20]
test rax, rax
jne 0x14007e3c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14007e682
mov rcx, qword [rsp + 0x298]
lea r8, [0x1402746f4]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.14007b940
mov r14d, eax
jmp 0x14007e682
mov r15d, r14d
mov dword [rsp + 0x2c], r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14007e3e5
mov edx, 0x95
jmp 0x14007e4c1
test eax, eax
je 0x14007e3fa
cmp eax, 0x102
je 0x14007e3fa
mov edx, 0x96
jmp 0x14007e647
mov dword [rsp + 0x24], r14d
mov edx, 1
mov rcx, rdi
test eax, eax
jne 0x14007e457
lea r8, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14007e424
mov edx, RegisterTypeLib
jmp 0x14007e4c1
inc dword [rsp + 0x24]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14007e44d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x14007e4ee
mov edx, reloc.OLEAUT32.dll_QueryPathOfRegTypeLib
jmp 0x14007e647
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14007e472
mov edx, 0xad
jmp 0x14007e4c1
cmp dword [rsp + 0x28], r14d
je 0x14007e483
mov edx, 0xae
jmp 0x14007e647
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14007e642
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x14007e642
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14007e4e0
mov edx, 0xb4
lea r8, [0x1402746f4]
mov rcx, qword [rsp + 0x298]
call fcn.14007b940
mov ebx, eax
test eax, eax
jns 0x14007e4f3
jmp 0x14007e663
test eax, eax
je 0x14007e4ee
mov edx, 0xb5
jmp 0x14007e647
mov r15d, dword [rsp + 0x24]
test r12b, r12b
je 0x14007e61f
mov rcx, rsi
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x14007e514
add rax, 2
sub rcx, 1
jne 0x14007e504
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14007e56d
sub rsi, rax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rax*2]
je 0x14007e55e
lea rcx, [0x140274850]
sub rcx, rdx
nop dword [rax + rax]
test rbp, rbp
je 0x14007e55e
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14007e55e
mov word [rdx], ax
add rdx, 2
dec rbp
sub rsi, 1
jne 0x14007e540
lea rax, [rdx - 2]
test rsi, rsi
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 rbx, rax
test rax, rax
setne bpl
test rax, rax
jne 0x14007e5ab
mov rcx, qword [rsp + 0x298]
lea r8, [0x1402746f4]
mov edx, 0xd5
call fcn.14007b940
mov esi, eax
jmp 0x14007e5da
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call fcn.14007a2d0
mov esi, eax
test eax, eax
jns 0x14007e601
mov rcx, qword [rsp + 0x298]
mov r9d, eax
lea r8, [0x1402746f4]
mov edx, 0xd7
call fcn.14007b970
test bpl, bpl
je 0x14007e685
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14007e6e0
jmp 0x14007e685
test bpl, bpl
je 0x14007e61f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14007e6f2
movsxd rcx, dword [rsp + 0x2c]
shl rcx, 0x1f
movsxd rax, r15d
test r13, r13
je 0x14007e635
mov byte [r13], 1
or rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
jmp 0x14007e682
mov edx, 0xb1
mov ebx, 0x8000ffff
mov r9d, ebx
lea r8, [0x1402746f4]
mov rcx, qword [rsp + 0x298]
call fcn.14007b970
mov rcx, qword [rsp + 0x298]
mov r9d, ebx
lea r8, [0x1402746f4]
mov edx, 0xcf
call fcn.14007b970
mov r14d, ebx
mov esi, r14d
cmp byte [rsp + 0x20], 0
je 0x14007e6a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14007e6ce
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.D:BWA29B6E26C_BE36_0MobileMeServices_237_srcrootpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
mov edx, 0x924
call fcn.14007fca0
nop
lea r8, str.D:BWA29B6E26C_BE36_0MobileMeServices_237_srcrootpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
mov edx, 0x924
call fcn.14007fca0
nop
lea r8, str.D:BWA29B6E26C_BE36_0MobileMeServices_237_srcrootpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
mov edx, 0x924
call fcn.14007fca0
int3