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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x140101078]
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 r13b, 1
cmp qword [rcx + 0x18], 8
jb 0x14009560d
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140095a01
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140095629
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140095a01
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.14008ce38
mov r15, rsi
mov qword [rsp + 0x50], rsi
mov r12, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
sub r12, rax
sar r12, 5
mov qword [rsp + 0x78], r12
cmp r13b, 1
jne 0x1400959f5
cmp r15, r12
jae 0x1400959f5
mov rdx, r15
shl rdx, 5
add rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.14008efb4
nop
lea rcx, [rsp + 0xa8]
call fcn.14008cbc0
test al, al
jne 0x14009570d
mov rdx, rdi
lea rcx, [rsp + 0x88]
call fcn.140089fc4
or r14d, 1
mov dword [rsp + 0x4c], r14d
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400956d6
mov rax, qword [rax]
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9, rax
mov rdx, qword [rsp + 0xb8]
call fcn.140090054
cmp rax, 0xffffffffffffffff
mov bl, 1
jne 0x140095710
mov bl, sil
test r14b, 1
je 0x14009572c
and r14d, 0xfffffffe
mov dword [rsp + 0x4c], r14d
lea rcx, [rsp + 0x88]
call fcn.14008858c
test bl, bl
je 0x1400959b2
lea rcx, [rsp + 0xa8]
call fcn.14008c92c
test al, al
jne 0x140095757
lea rcx, [rsp + 0xa8]
call fcn.14008c3c4
jmp 0x1400959b2
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x88]
call fcn.14008efb4
nop
mov rbx, qword [rdi + 0x10]
mov rdx, rdi
lea rcx, [rsp + 0xc8]
call fcn.140089fc4
nop
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140095790
mov rax, qword [rax]
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
mov rdx, qword [rsp + 0x98]
call fcn.140090054
mov qword [rsp + 0x20], 4
lea r9, [0x1400ec6d0]
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140095a34
lea rcx, [rsp + 0x88]
cmp rcx, rax
je 0x140095854
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400957fd
mov rax, qword [rax]
cmp rdx, qword [rsp + 0xa0]
ja 0x140095843
lea rdi, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdi, qword [rsp + 0x88]
mov qword [rsp + 0x98], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
nop
mov word [rbx + rdi], si
jmp 0x140095854
mov r9, rax
lea rcx, [rsp + 0x88]
call fcn.1400889b4
nop
lea rcx, [rsp + 0xc8]
call fcn.14008858c
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rcx, qword [rsp + 0xa8]
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 0x1400959a0
or dword [rsp + 0x44], 0xffffffff
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdx, qword [rsp + 0x88]
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 0x140095908
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 0x1400959a0
lea rdx, [0x1400ec808]
call fcn.1400018e0
mov rdi, rax
test rax, rax
jne 0x140095922
mov ecx, dword [rsp + 0x44]
jmp 0x1400958f4
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 0x140095984
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 0x140095947
call fcn.140001570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xa8]
call fcn.14008c3c4
nop
lea rcx, [rsp + 0x88]
call fcn.14008858c
mov rdi, qword [rsp + 0x58]
inc r15
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0xa8]
call fcn.14008858c
nop
jmp 0x1400959eb
mov rax, qword [rsp + 0x60]
jmp 0x140095673
lea rcx, [rsp + 0x60]
call fcn.140092718
jmp 0x140095a04
mov r13b, sil
mov al, r13b
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400b8190
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