Function at 0x14004a0f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9, r8
mov rbx, rdx
xor edi, edi
mov dword [rbp - 0x79], edi
mov r8d, 0x800
sub r8, qword [r9 + 0x10]
lea rdx, [r9 + 0x18]
add rdx, qword [r9 + 0x10]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x79]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a150
mov ecx, dword [rbp - 0x79]
mov dword [rbx], ecx
mov byte [rbx + 4], dil
jmp 0x14004a351
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x17]
call fcn.140033f90
nop
lea rcx, str.unable_to_read_from_driver_file
mov qword [rbp - 0x59], rcx
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004a17a
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x61], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbp - 0x69]
movups xmmword [rbp + 7], xmm1
mov qword [rbp - 0x69], 0xdc
lea rax, [rbp - 9]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x59], xmm0
lea rax, str.message:__with_code:_
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 0x19
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.1400728e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x39], 0x5c
mov qword [rbp - 0x31], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_srccommunicationdriver.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140082280]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140082290]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400822a0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400822b0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x1400822c0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x1400822c8]
mov dword [rcx + 0x58], eax
mov byte [rcx + 0x5c], 0
lea r9, [rbp - 0x29]
mov r8d, 0x4c
lea rdx, [rbp - 0x49]
lea ecx, [r8 - 0x4a]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x14004a2ae
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a2a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a2a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], sendto
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14004a2fc
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a2f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a2f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x14004a34b
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a346
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a346
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov dword [rbx], edi
mov byte [rbx + 4], 0xfe
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140073840
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret