Function at 0x140001000
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov ebp, r9d
mov r12, r8
mov rsi, rdx
mov dword [rax - 0x48], 0
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x1400010f5
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400010ec
call fcn.14002790c
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14000107c
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x1400010ee
xor ebx, ebx
mov qword [0x1400ae080], rbx
lea rdx, str.ReadData___using_overlapped_I_O__.
mov rcx, rbx
call fcn.14000d860
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
je 0x140001214
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x14000118f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000118f
call fcn.14000d730
mov rcx, rax
lea rdx, str.ERROR:_ReadData__:_ReadFile___Failed.
call fcn.14000d860
or eax, 0xffffffff
mov dword [rsp + 0x30], eax
jmp 0x140001205
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400011ea
mov dword [rsp + 0x38], eax
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400011e0
call fcn.14000d730
mov rcx, rax
lea rdx, str.ERROR:_ReadData__:_GetOverlappedResult___Failed.
call fcn.14000d860
or eax, 0xffffffff
mov dword [rsp + 0x30], eax
jmp 0x140001205
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
jmp 0x140001205
call fcn.14000d730
mov rcx, rax
lea rdx, str.ERROR:_ReadData__:_WaitForSingleObject___Failed.
call fcn.14000d860
or eax, 0xffffffff
mov dword [rsp + 0x30], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x14000122b
call fcn.14000d730
mov rcx, rax
lea rdx, str.ERROR:_ReadData__:_CreateEvent___Failed.
call fcn.14000d860
or eax, 0xffffffff
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret