Function at 0x1400191d0
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, r9
mov rsi, r8
mov r13, rdx
mov r15, rcx
mov rbx, qword [rsp + 0x120]
mov qword [rsp + 0x50], rbx
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x14001943f
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140019429
cmp dword [rsp + 0x94], 0
jne 0x140019429
mov eax, dword [rsp + 0x98]
cmp rax, qword [rsp + 0x40]
jne 0x140019429
lea rax, vtable.XFileIO.0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
mov edx, pe_nt_image_headers64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rbp + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140019315
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140019315
mov qword [rsp + 0x20], rbx
mov r9, r14
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.140019120
mov ebp, eax
jmp 0x140019415
mov rcx, qword [rsp + 0x40]
call fcn.14002fd4c
mov rdi, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400193ef
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rax, rcx
jne 0x1400193ef
call fcn.14002fd4c
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x40]
mov r8, rax
mov rdx, r13
mov rcx, r15
call fcn.140019480
test eax, eax
jns 0x1400193a1
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x20], r8
mov r9, r14
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.140019120
jmp 0x1400193de
test r14, r14
je 0x1400193b6
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x40]
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.140031d10
test eax, eax
je 0x1400193e0
mov r9, r14
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.140018fd0
mov ebp, eax
test rbx, rbx
je 0x140019407
mov rcx, rbx
call fcn.14002fb54
jmp 0x140019407
mov qword [rsp + 0x20], rbx
mov r9, r14
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.140019120
mov ebp, eax
test rdi, rdi
je 0x140019415
mov rcx, rdi
call fcn.14002fb54
nop
cmp r12, 0xffffffffffffffff
je 0x140019425
mov rcx, r12
call qword [0x1400472c0]
nop
mov eax, ebp
jmp 0x14001943f
mov qword [rsp + 0x20], rbx
mov r9, r14
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.140019120
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14002fb30
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret