Function at 0x14007e610
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
lea rax, str.CHIDDevice::ReadReport
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400ba8e8]
mov r8d, 0x11d
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008f230
nop
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xc0]
add rax, 0x40
mov rcx, rax
call fcn.14007de80
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140055d50
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x14007e71c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1400ba908]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400ba930]
mov r8d, 0x12b
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x5c]
jmp 0x14007e94a
mov rax, qword [rsp + 0xc0]
add rax, 0x40
mov rcx, rax
call fcn.1400108e0
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0xc0]
add rcx, 0x40
call fcn.140001df0
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x60]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x102
jne 0x14007e7f7
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rax, str.ReadFile_Timed_Out_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400ba968]
mov r8d, 0x135
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x54]
jmp 0x14007e94a
cmp dword [rsp + 0x40], 0
je 0x14007e81b
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x64]
jmp 0x14007e94a
mov r9d, 1
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14007e89a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_ReadFile:_0x_x_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400ba9a8]
mov r8d, 0x13b
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x48]
jmp 0x14007e94a
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 0xdc]
cmp dword [rsp + 0x44], eax
je 0x14007e8f8
lea rax, str.Bytes_Read_less_then_InputReportLength_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r9, [0x1400ba9f0]
mov r8d, 0x141
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x4c]
jmp 0x14007e94a
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.14007e070
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xc8]
call fcn.140010890
movzx eax, al
cmp eax, 0xc
jne 0x14007e934
cmp dword [rsp + 0xd0], 0
je 0x14007e672
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x58]
add rsp, 0xb8
ret