Function at 0x1400843c0
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov qword [rax - 0x4a0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140100070]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rdi, rdx
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov qword [rsp + 0x80], rdx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x4c], esi
mov byte [rsp + 0x40], 1
cmp qword [rcx + 0x18], 8
jb 0x140084423
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400849d7
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008443f
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400849d7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14007e160
mov r15, rsi
mov qword [rsp + 0x50], rsi
mov r13, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
sub r13, rax
sar r13, 5
mov qword [rsp + 0x78], r13
mov bl, 1
mov r12d, 0x1000
cmp bl, 1
jne 0x140084989
cmp r15, r13
jae 0x140084989
mov rdx, r15
shl rdx, 5
add rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14007efb0
nop
lea rcx, [rsp + 0x90]
call fcn.14007df34
test al, al
jne 0x14008452a
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call fcn.14007c478
or r14d, 1
mov dword [rsp + 0x4c], r14d
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x1400844f2
mov r9, qword [rax]
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0xa0]
call fcn.140081134
cmp rax, 0xffffffffffffffff
mov bl, 1
jne 0x14008452d
mov bl, sil
test r14b, 1
je 0x140084583
and r14d, 0xfffffffe
mov dword [rsp + 0x4c], r14d
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x140084583
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, r12
jb 0x14008457e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008457e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
test bl, bl
je 0x1400848fc
lea rcx, [rsp + 0x90]
call fcn.14007dcdc
test al, al
jne 0x1400845ea
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400848fc
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400848fc
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.14007efb0
nop
mov rdx, rdi
lea rcx, [rsp + 0xd0]
call fcn.14007c478
nop
mov rdi, qword [rdi + 0x10]
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x140084622
mov r9, qword [rax]
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0xc0]
call fcn.140081134
mov rbx, rax
lea rcx, [0x1400e0de0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e0de0]
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.140084a78
lea rcx, [rsp + 0xb0]
cmp rcx, rax
je 0x1400846f2
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x14008469b
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rsp + 0xc8]
ja 0x1400846e4
lea rdi, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rdi, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov word [rbx + rdi], si
jmp 0x1400846f2
lea rcx, [rsp + 0xb0]
call fcn.14007c968
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x140084739
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, r12
jb 0x140084734
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140084734
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400848b0
or dword [rsp + 0x44], 0xffffffff
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rdx, qword [rsp + 0xb0]
mov dword [rsp + 0x20], 0x80
mov r9d, 0x40
mov r8d, 0x8101
lea rcx, [rsp + 0x44]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_s]
mov ecx, dword [rsp + 0x44]
test eax, eax
je 0x1400847e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400848b0
lea rdx, [0x1400e0dd8]
call fcn.1400018e0
mov rdi, rax
test rax, rax
jne 0x1400847fa
mov ecx, dword [rsp + 0x44]
jmp 0x1400847cc
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x48]
mov rcx, rdi
test r8d, r8d
je 0x14008485c
lea rdx, [rsp + 0xf0]
call fcn.140001320
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14008481f
call fcn.140001570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400848b0
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 8
jb 0x1400848f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, r12
jb 0x1400848f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400848f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
mov rdi, qword [rsp + 0x58]
inc r15
mov qword [rsp + 0x50], r15
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14008494c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, r12
jb 0x140084946
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140084946
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
nop
mov rax, qword [rsp + 0x60]
mov bl, byte [rsp + 0x40]
jmp 0x140084491
test rax, rax
je 0x1400849da
mov r8, qword [rsp + 0x68]
mov rdx, rax
call fcn.140081524
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r12
jb 0x1400849d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400849d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
jmp 0x1400849da
mov bl, sil
mov al, bl
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400a95a0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret