Function at 0x14005b0f8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140379a08]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14003dd20
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14005b15f
add rax, 2
sub rcx, 1
jne 0x14005b14f
test rcx, rcx
je 0x140170e0c
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14005b1c8
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x14005b1b9
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x1403005e8]
sub rax, rcx
test r8, r8
je 0x14005b1b9
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x14005b1b9
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x14005b198
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14005b238
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140170e14
mov esi, r15d
test rdi, rdi
jne 0x14005b331
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400a2260
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14005ce4c
mov esi, eax
test eax, eax
js 0x140170e3a
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14005b271
add rax, 2
sub rcx, 1
jne 0x14005b261
test rcx, rcx
je 0x140170e5b
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14005b2d5
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rbx, rax
je 0x14005b2c6
lea rcx, [rax + 0x7ffffefa]
add rcx, rbx
lea r8, [0x1403005f0]
sub r8, rdx
test rcx, rcx
je 0x14005b2c6
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14005b2c6
mov word [rdx], ax
dec rcx
add rdx, 2
sub rbx, 1
jne 0x14005b2a7
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140170e1b
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14005ce4c
mov esi, eax
test eax, eax
js 0x140170e63
mov rcx, rbx
call fcn.140096240
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
jmp 0x14005b1fd
mov rcx, rdi
call fcn.140096240
jmp 0x14005b209
mov rax, r15
jmp 0x14005b16e
mov edx, reloc.SHELL32.dll_Ordinal_201
jmp 0x140170e20
mov edx, reloc.SHCORE.dll_Ordinal_213
mov rcx, qword [rbp + 0x168]
lea r8, [0x140307c1c]
call fcn.140188698
mov esi, eax
jmp 0x14005b200
mov rcx, qword [rbp + 0x168]
lea r8, [0x140307c1c]
mov r9d, eax
mov edx, Ordinal_210
call fcn.14001eb0c
nop
jmp 0x14005b200
mov rax, r15
jmp 0x14005b280
mov rcx, qword [rbp + 0x168]
lea r8, [0x140307c1c]
mov r9d, eax
mov edx, 0xd7
call fcn.14001eb0c
mov rcx, rbx
call fcn.140096240
nop
jmp 0x14005b200