Function at 0x14004a370
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp], rax
mov r9, r8
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov r8d, 0x800
sub r8, qword [r9 + 0x10]
lea rdx, [r9 + 0x18]
add rdx, qword [r9 + 0x10]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004a603
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14004a603
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.140033f90
nop
lea rcx, str.unable_to_read_from_driver_file
mov qword [rsp + 0x50], rcx
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004a41d
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x40], 0xdc
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, str.message:__with_code:_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400728e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], 0x5c
mov qword [rbp - 0x68], 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 - 0x60]
mov r8d, WSAGetLastError
lea rdx, [rbp - 0x80]
lea ecx, [r8 - 0x6a]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14004a55d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a558
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a558
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], sendto
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14004a5ab
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a5a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a5a6
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 - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14004a5fa
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a5f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a5f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov byte [rbx + 4], 0xfe
jmp 0x14004a867
mov dword [rsp + 0x20], esi
mov r9d, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResultEx]
test eax, eax
je 0x14004a634
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov byte [rbx + 4], sil
jmp 0x14004a869
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
je 0x14004a863
cmp eax, 0x102
je 0x14004a85d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140033f90
nop
lea rcx, str.unable_to_read_overlapped_result_from_driver
mov qword [rsp + 0x50], rcx
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004a679
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x10], xmm1
mov qword [rsp + 0x40], 0xdc
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, str.message:__with_code:_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x19
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400728e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], 0x5c
mov qword [rbp - 0x68], 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 - 0x60]
mov r8d, 0x7a
lea rdx, [rbp - 0x80]
lea ecx, [r8 - 0x78]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14004a7b9
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], sendto
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14004a807
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a802
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a802
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 - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14004a5fa
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a5f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a5f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [rbx + 4], 0x10
jmp 0x14004a867
mov byte [rbx + 4], sendto
mov dword [rbx], esi
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140073840
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret