Function at 0x18000a740
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x270
mov rax, qword [0x18005c188]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x30], r8
mov r13, r9
mov byte [rsp + 0x20], dl
mov r10, rcx
test r9, r9
je 0x18000a779
mov byte [r9], 0
xor r14d, r14d
lea rax, [rsp + 0x40]
mov esi, 0x104
mov qword [r8], r14
mov edx, esi
lea rcx, [rsp + 0x40]
sub r10, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x18000a7b6
movzx eax, word [r10 + rcx]
test ax, ax
je 0x18000a7b6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18000a793
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov rcx, rsi
mov word [rax], r14w
lea rax, [rsp + 0x40]
nop dword [rax]
cmp word [rax], r14w
je 0x18000a7e0
add rax, 2
sub rcx, 1
jne 0x18000a7d0
mov rax, rsi
mov ebp, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x18000a841
mov rdx, rsi
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x18000a832
lea r9, [0x180045418]
mov eax, ebp
sub r9, rcx
test rax, rax
je 0x18000a832
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x18000a832
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x18000a811
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov qword [rsp + 0x2a0], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x268], r12
xor edx, edx
mov ecx, 0x1f0003
mov qword [rsp + 0x260], r15
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x18000a8a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000ab4d
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
mov edx, 0xc9
call fcn.180009930
mov r14d, eax
jmp 0x18000ab4d
xor edx, edx
mov dword [rsp + 0x2c], r14d
mov rcx, rdi
mov r12d, r14d
mov r15d, r14d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000a8c8
mov edx, 0x95
jmp 0x18000a9a4
test eax, eax
je 0x18000a8dd
cmp eax, 0x102
je 0x18000a8dd
mov edx, 0x96
jmp 0x18000ab12
mov dword [rsp + 0x24], r14d
mov edx, 1
mov rcx, rdi
test eax, eax
jne 0x18000a93a
lea r8, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x18000a907
mov edx, 0x9e
jmp 0x18000a9a4
inc dword [rsp + 0x24]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x18000a930
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x18000a9d1
mov edx, 0xa3
jmp 0x18000ab12
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], r14d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x18000a955
mov edx, 0xad
jmp 0x18000a9a4
cmp dword [rsp + 0x28], r12d
je 0x18000a966
mov edx, 0xae
jmp 0x18000ab12
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x18000ab0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x18000ab0d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000a9c3
mov edx, 0xb4
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
call fcn.180009930
mov ebx, eax
test eax, eax
jns 0x18000a9d6
jmp 0x18000ab2e
test eax, eax
je 0x18000a9d1
mov edx, 0xb5
jmp 0x18000ab12
mov r12d, dword [rsp + 0x24]
cmp byte [rsp + 0x20], r14b
je 0x18000aae9
mov rcx, rsi
lea rax, [rsp + 0x40]
nop dword [rax]
cmp word [rax], r14w
je 0x18000aa00
add rax, 2
sub rcx, 1
jne 0x18000a9f0
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x18000aa54
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rax*2]
sub rsi, rax
je 0x18000aa45
lea rcx, [0x180045420]
sub rcx, rdx
test rbp, rbp
je 0x18000aa45
movzx eax, word [rdx + rcx]
test ax, ax
je 0x18000aa45
mov word [rdx], ax
dec rbp
add rdx, 2
sub rsi, 1
jne 0x18000aa27
test rsi, rsi
lea rax, [rdx - 2]
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
jne 0x18000aa8e
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
mov edx, 0xd5
call fcn.180009930
mov esi, eax
jmp 0x18000ab55
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call fcn.180008eb0
mov esi, eax
test eax, eax
jns 0x18000aad3
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
mov r9d, eax
mov edx, 0xd7
call fcn.180009960
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000abb5
jmp 0x18000ab55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000abcf
mov r15d, dword [rsp + 0x2c]
movsxd rcx, r15d
shl rcx, 0x1f
movsxd rax, r12d
test r13, r13
je 0x18000aafd
mov byte [r13], 1
or rax, rcx
mov esi, r14d
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
jmp 0x18000ab55
mov edx, 0xb1
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
mov ebx, 0x8000ffff
mov r9d, ebx
call fcn.180009960
mov rcx, qword [rsp + 0x298]
lea r8, [0x18004565c]
mov r9d, ebx
mov edx, 0xcf
call fcn.180009960
mov r14d, ebx
mov esi, r14d
test rdi, rdi
je 0x18000ab62
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000ab9b
mov r15, qword [rsp + 0x260]
mov eax, esi
mov r12, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180018fa0
add rsp, 0x270
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x298]
lea r8, str.G:Projectscommoncore_winwil_resource.h
mov edx, 0x93e
call fcn.18000ada0
int3
mov rcx, qword [rsp + 0x298]
lea r8, str.G:Projectscommoncore_winwil_resource.h
mov edx, 0x93e
call fcn.18000ada0
int3
mov rcx, qword [rsp + 0x298]
lea r8, str.G:Projectscommoncore_winwil_resource.h
mov edx, 0x93e
call fcn.18000ada0
int3