Function at 0x140006480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp + 0x1f], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x59], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x51], rcx
cmp rbx, 0xffffffffffffffff
je 0x1400066ad
nop word [rax + rax]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006608
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400065fd
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400065a4
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x1400065a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x14000658c
cmp eax, 0xffffffff
je 0x140006608
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140006540
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400065cd
cmp eax, 1
je 0x14000665f
jmp 0x1400064f0
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x1f]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140006608
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140006679
jmp 0x1400066e3
cmp eax, 0x6d
je 0x140006693
jmp 0x140006629
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Read_Error
lea rcx, [rbp - 0x11]
call fcn.14000ea7c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x49]
call fcn.14001337c
nop
lea rcx, [rbp - 0x49]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x49]
call fcn.14001337c
int3
lea rcx, [rbp - 0x49]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x49]
call fcn.14001337c
int3
lea rcx, [rbp - 0x49]
call fcn.140006270
lea rdx, [0x14003a928]
lea rcx, [rbp - 0x49]
call fcn.14001337c
int3
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp - 0x11]
call fcn.14000ea7c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x49]
call fcn.14001337c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.unexpected_error
lea rcx, [rbp - 0x11]
call fcn.14000ea7c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.140006200
lea rdx, [0x14003a960]
lea rcx, [rbp - 0x49]
call fcn.14001337c
int3