Function at 0x140019a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov rbx, rcx
lea r12, [rcx + 0x20]
xor r15d, r15d
mov qword [rcx + 0x38], r15
mov rdx, qword [rcx + 0x58]
test rdx, rdx
je 0x140019a58
mov rax, qword [rcx + 0x40]
add rcx, 0x40
call qword [rax + 0x18]
mov qword [rbx + 0x58], r15
mov qword [rbx + 0x68], r15
mov qword [rbx + 0x60], r15
mov byte [rbx + 0x78], r15b
mov rcx, qword [rbx + 0x18]
add rcx, 0x10
call fcn.14001b2a0
mov rcx, qword [rbp + 0x18]
test rcx, rcx
jne 0x140019a8f
cmp qword [rbp + 0x48], r15
lea rcx, [0x14005d198]
je 0x140019a8f
mov rcx, qword [rbp + 0x38]
lea rdx, [0x14005e6c8]
call fcn.14003c228
mov rsi, rax
test rax, rax
jne 0x140019aab
lea eax, [rsi - 3]
jmp 0x140019d25
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call fcn.14003c494
mov rcx, rsi
call fcn.14003c990
movsxd r13, eax
mov rcx, rsi
test eax, eax
jne 0x140019afe
call fcn.14003ca1c
mov r14d, 0xffffffff
mov dword [rbx + 0x7c], r14d
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x10], r15
jne 0x140019ae8
mov byte [rax + 0x50], r15b
mov rdx, rbp
mov rcx, r12
call fcn.14000a9c0
mov byte [rbx + 0x78], r15b
xor eax, eax
jmp 0x140019d25
xor r8d, r8d
xor edx, edx
call fcn.14003c494
mov rcx, r13
call fcn.140037038
mov rdi, rax
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.1400388e0
mov byte [rdi], r15b
mov r9, rsi
mov r8, r13
mov edx, 1
mov rcx, rdi
call fcn.14003cce0
mov rcx, rsi
call fcn.14003ca1c
mov r14d, 0xffffffff
mov dword [rbx + 0x7c], r14d
cmp word [rdi], 0xfeff
jne 0x140019cba
xor ecx, ecx
mov dword [rbx + 0x7c], ecx
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x10], rcx
jne 0x140019b66
mov byte [rax + 0x50], 1
lea eax, [r13 - 2]
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], cl
mov r9d, r15d
cmp r15, 0xffffffffffffffff
cmove r9d, r14d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
lea r8, [rdi + 2]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jle 0x140019c23
lea rcx, [rsp + 0x40]
cmp r15, 0xffffffffffffffff
jne 0x140019bdb
dec esi
movsxd rdx, esi
call fcn.14001f2e0
jmp 0x140019be6
mov rdx, rsi
call fcn.14001f2e0
mov r14d, r15d
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 2]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
jmp 0x140019c3f
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov byte [rax], r15b
mov rcx, qword [rbx + 0x18]
add rcx, 0x10
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14001b470
mov esi, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140019ca1
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019c9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019d4a
call fcn.140036964
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea r12, [rbx + 0x20]
jmp 0x140019d08
cmp word [rdi], 0xbbef
jne 0x140019cde
cmp byte [rdi + 2], 0xbf
jne 0x140019cde
mov dword [rbx + 0x7c], 1
mov rcx, qword [rbx + 0x18]
cmp qword [rcx + 0x10], r15
jne 0x140019cf7
mov byte [rcx + 0x50], 1
jmp 0x140019cf3
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x7c], 2
cmp qword [rcx + 0x10], r15
jne 0x140019cf7
mov byte [rcx + 0x50], r15b
mov rcx, qword [rbx + 0x18]
mov r8, r13
mov rdx, rdi
add rcx, 0x10
call fcn.14001b470
mov esi, eax
mov rcx, rdi
call fcn.140036964
test esi, esi
js 0x140019d23
mov rdx, rbp
mov rcx, r12
call fcn.14000a9c0
mov byte [rbx + 0x78], 0
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140036870
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14003c0e4
int3