Function at 0x18000ffb0
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x268
mov rax, qword [0x180122658]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [r11 - 0x18], r12
mov r12, r9
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov r15, r8
test r9, r9
jne 0x180038b98
xor ebp, ebp
mov r14d, 0x104
mov qword [r8], rbp
mov edx, r14d
mov r8, rcx
lea rcx, [rsp + 0x30]
call fcn.18000dd00
mov ecx, r14d
mov qword [rsp + 0x280], rbx
lea rax, [rsp + 0x30]
cmp word [rax], bp
je 0x180010028
add rax, 2
sub rcx, 1
jne 0x180010014
jmp 0x180038baa
test rcx, rcx
je 0x180038baa
mov rax, r14
mov ebx, 0x7ffffffe
sub rax, rcx
lea rax, [rsp + rax*2 + 0x30]
test rcx, rcx
je 0x180038ba1
lea r9, [0x1800f2cb0]
mov r8d, ebx
sub r9, rax
test r8, r8
je 0x18001007b
movzx edx, word [r9 + rax]
test dx, dx
je 0x18001007b
mov word [rax], dx
dec r8
add rax, 2
sub rcx, 1
jne 0x180010057
jmp 0x180038ba1
test rcx, rcx
je 0x180038ba1
mov word [rax], bp
lea r8, [rsp + 0x30]
mov qword [rsp + 0x288], rsi
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
je 0x180038bb4
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebp
mov rcx, rax
mov dword [rsp + 0x20], ebp
call fcn.1800101f0
mov esi, eax
test eax, eax
js 0x180038be3
mov rcx, r14
lea rax, [rsp + 0x30]
cmp word [rax], bp
je 0x1800100e5
add rax, 2
sub rcx, 1
jne 0x1800100d4
jmp 0x180010140
test rcx, rcx
je 0x180010140
sub r14, rcx
lea rax, [rsp + 0x30]
lea rax, [rax + r14*2]
test rcx, rcx
je 0x180038c06
lea r8, [0x1800f2cac]
sub r8, rax
nop dword [rax]
test rbx, rbx
je 0x180010134
movzx edx, word [r8 + rax]
test dx, dx
je 0x180010134
mov word [rax], dx
dec rbx
add rax, 2
sub rcx, 1
jne 0x180010110
jmp 0x180038c06
test rcx, rcx
je 0x180038c06
mov word [rax], bp
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
je 0x180038c0f
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800101f0
mov esi, eax
test eax, eax
js 0x180038c2c
mov rcx, rbx
call fcn.18000540c
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
test r12, r12
jne 0x1800101e7
or rax, rcx
mov qword [r15], rax
mov r15, qword [rsp + 0x250]
mov r14, qword [rsp + 0x258]
mov r12, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
test rdi, rdi
je 0x1800101cb
mov rcx, rdi
call fcn.18000540c
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180023ec0
add rsp, 0x268
pop rdi
pop rbp
ret
mov byte [r12], 1
jmp 0x180010190
mov byte [r9], 0
jmp 0x18000ffe9
sub rax, 2
jmp 0x180010084
mov ebx, 0x7ffffffe
jmp 0x180010087
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x180010196
mov rcx, qword [rsp + 0x278]
lea r8, [0x1800f3ae4]
mov edx, 0xc8
call fcn.18003d330
mov ebp, eax
jmp 0x180010196
mov rcx, qword [rsp + 0x278]
lea r8, [0x1800f3ae4]
mov r9d, esi
mov edx, 0xce
call fcn.18000deb0
mov ebp, esi
jmp 0x180010196
sub rax, 2
jmp 0x18001013d
mov rcx, qword [rsp + 0x278]
lea r8, [0x1800f3ae4]
mov edx, 0xd4
call fcn.18003d330
mov esi, eax
jmp 0x180038c50
mov rcx, qword [rsp + 0x278]
lea r8, [0x1800f3ae4]
mov r9d, eax
mov edx, 0xd6
call fcn.18000deb0
mov rcx, rbx
call fcn.18000540c
mov ebp, esi
jmp 0x180010196