Function at 0x1400fba30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x120], 0
je 0x1400fbc86
mov ecx, 0x20
call fcn.140072204
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x70]
mov qword [rcx], rax
mov r8d, 0x20
xor edx, edx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
call fcn.1400a87c0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rax + 0x18], r11
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x58]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x5c]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400fbb77
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140072248
mov rax, qword [rsp + 0x120]
mov qword [rax], 0
mov eax, 1
jmp 0x1400fbe0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400fbc7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
call fcn.1400fb3d0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x88]
call fcn.1400f9860
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0xc8]
mov r8, qword [r8]
lea rdx, str._ERROR__file_read_0__s_error__d_s
mov ecx, 1
call fcn.1400dcf70
nop
lea rcx, [rsp + 0x88]
call fcn.140001490
nop
lea rcx, [rsp + 0x80]
call fcn.140001490
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140072248
mov rax, qword [rsp + 0x120]
mov qword [rax], 0
xor eax, eax
jmp 0x1400fbe0b
mov eax, 1
jmp 0x1400fbe0b
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400a87c0
mov r11d, dword [rsp + 0x58]
mov dword [rsp + 0x48], r11d
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x4c], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400fbd09
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400fbe0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400fbdd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x98]
call fcn.1400fb3d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call fcn.1400f9860
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x6c]
mov r8, qword [rsp + 0xe8]
mov r8, qword [r8]
lea rdx, str._ERROR__file_read_1__s_error__d_s
mov ecx, 1
call fcn.1400dcf70
nop
lea rcx, [rsp + 0xa0]
call fcn.140001490
nop
lea rcx, [rsp + 0x98]
call fcn.140001490
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400fbe0b
mov dword [rsp + 0x64], 0
mov r9d, 1
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
add rsp, 0xf8
ret