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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
pxor xmm0, xmm0
mov rax, qword [rsp + 0xa8]
lea r12, [rdx + 0x40]
mov qword [rdx + 0x70], rax
mov rdi, rcx
mov rsi, rdx
mov dword [rdx + 8], 3
mov rbx, r8
mov rbp, r9
mov qword [rdx + 0x80], r8
movups xmmword [rdx + 0x40], xmm0
movups xmmword [r12 + 0x10], xmm0
test byte [r8 + 0x5a], 8
je 0x140074c1c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xa0], rax
test rax, rax
je 0x140074e6c
mov qword [rsi + 0xa8], 0xffffffffffffffff
or rax, 1
mov qword [rsi + 0x58], rax
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], r12
mov rdx, rbp
mov dword [rsp + 0x20], 0
mov r8d, dword [rsp + 0xa0]
mov qword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x140074da0
mov eax, dword [rbx + 0x58]
test eax, 0x20000
jne 0x140074d40
mov edx, dword [rsp + 0xa0]
mov rcx, rbp
call fcn.140084620
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], rax
lea ecx, [rdx + 1]
add dword [rbx + 0x78], 1
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], ecx
test edx, edx
jne 0x140074e10
mov edx, dword [rbx + 0x58]
test dl, 4
je 0x140074e50
add dword [rdi + 0x20], 1
add qword [rbx + 0x60], rax
and edx, 0x80000
je 0x140074d8e
mov rdx, qword [rsi + 0xa0]
lea rcx, [rsi + 0xa8]
mov dword [rsp + 0x28], 0xc
mov r9, rsi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x140073ac0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140074d8e
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
test eax, eax
jle 0x140074e05
nop dword [rax + rax]
call rbx
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rsi + 0x68], 0
test rax, rax
jne 0x140074d7e
xor eax, eax
mov qword [rsi + 0x68], rsi
mov qword [rdi + 0x48], rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
lea ecx, [rdx + 1]
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], ecx
mov ecx, eax
and ecx, 4
or ecx, edx
je 0x140074e30
mov rax, qword [rdi + 0x48]
add dword [rdi + 0x20], 1
mov qword [rsi + 0x68], 0
test rax, rax
je 0x140074d21
mov rdx, qword [rax + 0x68]
mov qword [rsi + 0x68], rdx
mov qword [rax + 0x68], rsi
mov qword [rdi + 0x48], rsi
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140074c65
mov eax, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], edx
test eax, eax
jne 0x140074df0
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x140074df0
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x140074df0
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
nop dword [rax]
add dword [rdi + 0x20], 1
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
test eax, eax
jg 0x140074d00
call rbx
cdqe
jmp 0x140074d0c
mov edx, dword [rbx + 0x58]
add dword [rdi + 0x20], 1
add qword [rbx + 0x60], rax
and edx, 0x80000
je 0x140074d8e
jmp 0x140074cb4
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x140074d69
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x140074d69
mov ecx, edx
or ecx, 4
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x140074e65
mov rdx, qword [rbx + 8]
add dword [rdx + 8], 1
mov edx, ecx
jmp 0x140074ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.140060630
nop
nop word cs:[rax + rax]
nop dword [rax]