Function at 0x140023bf0
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x268
mov rax, qword [0x1400c9158]
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 0x140041152
xor ebp, ebp
mov r14d, 0x104
mov qword [r8], rbp
mov edx, r14d
mov r8, rcx
lea rcx, [rsp + 0x30]
call fcn.1400252d0
mov ecx, r14d
mov qword [rsp + 0x280], rbx
lea rax, [rsp + 0x30]
cmp word [rax], bp
je 0x140023c68
add rax, 2
sub rcx, 1
jne 0x140023c54
jmp 0x140041164
test rcx, rcx
je 0x140041164
mov rax, r14
mov ebx, 0x7ffffffe
sub rax, rcx
lea rax, [rsp + rax*2 + 0x30]
test rcx, rcx
je 0x14004115b
lea r9, [0x140095cc0]
mov r8d, ebx
sub r9, rax
test r8, r8
je 0x140023cbb
movzx edx, word [r9 + rax]
test dx, dx
je 0x140023cbb
mov word [rax], dx
dec r8
add rax, 2
sub rcx, 1
jne 0x140023c97
jmp 0x14004115b
test rcx, rcx
je 0x14004115b
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 0x14004116e
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebp
mov rcx, rax
mov dword [rsp + 0x20], ebp
call fcn.140023e30
mov esi, eax
test eax, eax
js 0x14004119d
mov rcx, r14
lea rax, [rsp + 0x30]
cmp word [rax], bp
je 0x140023d25
add rax, 2
sub rcx, 1
jne 0x140023d14
jmp 0x140023d80
test rcx, rcx
je 0x140023d80
sub r14, rcx
lea rax, [rsp + 0x30]
lea rax, [rax + r14*2]
test rcx, rcx
je 0x1400411c0
lea r8, [0x140095cb8]
sub r8, rax
nop dword [rax]
test rbx, rbx
je 0x140023d74
movzx edx, word [r8 + rax]
test dx, dx
je 0x140023d74
mov word [rax], dx
dec rbx
add rax, 2
sub rcx, 1
jne 0x140023d50
jmp 0x1400411c0
test rcx, rcx
je 0x1400411c0
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 0x1400411c9
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140023e30
mov esi, eax
test eax, eax
js 0x1400411e6
mov rcx, rbx
call fcn.140027b28
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
test r12, r12
jne 0x140023e27
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 0x140023e0b
mov rcx, rdi
call fcn.140027b28
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x268
pop rdi
pop rbp
ret
mov byte [r12], 1
jmp 0x140023dd0
mov byte [r9], 0
jmp 0x140023c29
sub rax, 2
jmp 0x140023cc4
mov ebx, 0x7ffffffe
jmp 0x140023cc7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140023dd6
mov rcx, qword [rsp + 0x278]
lea r8, [0x140097a00]
mov edx, 0xc8
call fcn.1400489d0
mov ebp, eax
jmp 0x140023dd6
mov rcx, qword [rsp + 0x278]
lea r8, [0x140097a00]
mov r9d, esi
mov edx, 0xce
call fcn.1400069dc
mov ebp, esi
jmp 0x140023dd6
sub rax, 2
jmp 0x140023d7d
mov rcx, qword [rsp + 0x278]
lea r8, [0x140097a00]
mov edx, 0xd4
call fcn.1400489d0
mov esi, eax
jmp 0x14004120a
mov rcx, qword [rsp + 0x278]
lea r8, [0x140097a00]
mov r9d, eax
mov edx, 0xd6
call fcn.1400069dc
mov rcx, rbx
call fcn.140027b28
mov ebp, esi
jmp 0x140023dd6