Function at 0x140198da0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
lea r14, [rdx + 0x40]
mov qword [rdx + 0x70], rax
mov rbp, r9
xor eax, eax
mov dword [rdx + 8], 3
mov qword [rdx + 0x80], r8
mov rdi, r8
mov qword [r14], rax
mov rbx, rdx
mov qword [r14 + 8], rax
mov rsi, rcx
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [r8 + 0x58], 0x80000
je 0x140198e2a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x14019900f
or rax, 1
mov qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], r15
mov rdx, rbp
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
lea r8d, [r15 + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x140198ec9
test dword [rdi + 0x58], 0x20000
je 0x140198f40
mov qword [rbx + 0x60], r15
mov ecx, dword [rdi + 0x7c]
inc dword [rdi + 0x78]
inc dword [rdi + 0x100]
lea eax, [rcx + 1]
mov dword [rdi + 0x7c], eax
test ecx, ecx
jne 0x140198ea0
mov eax, dword [rdi + 0x58]
test al, 4
jne 0x140198ea0
or eax, 4
mov dword [rdi + 0x58], eax
test al, 8
je 0x140198ea0
mov rax, qword [rdi + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
mov qword [rbx + 0x68], r15
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140198fed
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x140198ff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140198f40
mov qword [rbx + 0x60], r15
mov ecx, dword [rdi + 0x7c]
inc dword [rdi + 0x78]
inc dword [rdi + 0x100]
lea eax, [rcx + 1]
mov dword [rdi + 0x7c], eax
test ecx, ecx
jne 0x140198f08
mov eax, dword [rdi + 0x58]
test al, 4
jne 0x140198f08
or eax, 4
mov dword [rdi + 0x58], eax
test al, 8
je 0x140198f08
mov rax, qword [rdi + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x140198f22
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cdqe
mov qword [r14], rax
jmp 0x140198ea3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x140198ea3
mov eax, dword [rbp]
mov qword [rbx + 0x60], rax
mov ecx, dword [rdi + 0x7c]
inc dword [rdi + 0x78]
inc dword [rdi + 0x100]
lea eax, [rcx + 1]
mov dword [rdi + 0x7c], eax
test ecx, ecx
jne 0x140198f75
mov eax, dword [rdi + 0x58]
test al, 4
jne 0x140198f75
or eax, 4
mov dword [rdi + 0x58], eax
test al, 8
je 0x140198f75
mov rax, qword [rdi + 8]
inc dword [rax + 8]
inc dword [rsi + 0x20]
mov rax, qword [rbx + 0x60]
add qword [rdi + 0x60], rax
test dword [rdi + 0x58], 0x80000
je 0x140198ff5
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0xa8]
mov dword [rsp + 0x28], recv
lea r8, [0x140198330]
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140198ff5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140198fd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [r14], rax
jmp 0x140198ea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x140198ea3
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r15, qword [rsp + 0x60]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14019e560
int3