Function at 0x140080f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [rcx + 0x178]
lea r9, [rbp - 0x49]
mov rbx, qword [rcx + 0x18]
lea rdx, [rbp - 0x19]
xor esi, esi
mov qword [rbp - 1], rax
mov rax, qword [rcx + 0x2c0]
mov edi, esi
mov qword [rbp + 7], rax
mov rax, qword [rcx + 0x2c8]
mov qword [rbp + 0xf], rax
lea r8d, [rsi + 0x40]
mov rax, qword [rcx + 0x290]
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x298]
mov rcx, rbx
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
mov dword [rbp - 0x19], reloc.WS2_32.dll_ntohl
mov qword [rbp - 0x11], 0x40
mov dword [rbp - 9], esi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400810cf
lea r9, [rbp - 0x49]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x20]
mov rcx, rbx
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400810cf
cmp dword [rbp + 0x3f], esi
je 0x1400810a0
lea ecx, [rsi + 0x20]
call fcn.14000e3d0
test al, al
je 0x14008105e
mov ecx, dword [rbp + 0x3f]
lea rdx, [rbp - 0x41]
call fcn.14000ebf0
mov r9d, dword [rbp + 0x3f]
lea rdx, str.Register_ring_buffers_failed_using_service:__s__status0x_x_
mov r8, rax
lea ecx, [rsi + 0x20]
call fcn.14000e000
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
test rsi, rsi
je 0x140081077
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rbx
test rbx, rbx
jne 0x140081063
test rdi, rdi
je 0x14008115b
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140081080
jmp 0x14008115b
cmp dword [0x1400cfe94], 1
jb 0x1400810c8
mov ecx, 1
call fcn.14000e3d0
test al, al
je 0x1400810c8
lea rdx, str.Ring_buffers_registered_via_service
mov ecx, 1
call fcn.14000e000
mov al, 1
jmp 0x14008115d
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x14008115b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rbp - 0x31]
call fcn.14000ebf0
mov r9, rax
mov dword [rsp + 0x20], ebx
lea r8, str.Register_ring_buffers
mov ecx, 0x40
lea rdx, str._s:_could_not_talk_to_service:__s___lu_
call fcn.14000e000
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140081133
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140081122
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14008115b
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140081140
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140088150
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret