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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
lea r14, [rdx + 0x40]
mov qword [rdx + 0x80], r8
lea rax, [0x18001b034]
mov dword [rdx + 8], 3
mov qword [rdx + 0x70], rax
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
mov rbp, r9
mov rcx, r14
lea r8d, [rdx + 0x20]
call fcn.180025ca4
test dword [rdi + 0x58], 0x100000
je 0x180015abf
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
jne 0x180015aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbx + 0xa0]
or rax, 1
or qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x58], rax
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x70]
mov rcx, qword [rdi + 0x110]
mov r8d, 1
mov qword [rsp + 0x28], r14
mov rdx, rbp
and dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x180015b73
test dword [rdi + 0x58], 0x40000
je 0x180015bf7
and qword [rbx + 0x60], 0
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 0x180015b32
mov eax, dword [rdi + 0x58]
test al, 0x40
jne 0x180015b32
or eax, 0x40
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x180015b32
mov rax, qword [rdi + 8]
inc dword [rax + 8]
lea rcx, [rbx + 0x10]
lea rax, [rsi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x18], rax
mov qword [rax], rcx
mov qword [rsi + 0x28], rcx
and qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x180015ca6
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x180015caa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180015bf7
and qword [rbx + 0x60], 0
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 0x180015bb3
mov eax, dword [rdi + 0x58]
test al, 0x40
jne 0x180015bb3
or eax, 0x40
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x180015bb3
mov rax, qword [rdi + 8]
inc dword [rax + 8]
lea rcx, [rbx + 0x10]
lea rax, [rsi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x18], rax
mov qword [rax], rcx
mov qword [rsi + 0x28], rcx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x180015bdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180015bed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x180015b4c
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 0x180015c2c
mov eax, dword [rdi + 0x58]
test al, 0x40
jne 0x180015c2c
or eax, 0x40
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x180015c2c
mov rax, qword [rdi + 8]
inc dword [rax + 8]
lea rcx, [rbx + 0x10]
lea rax, [rsi + 0x20]
mov qword [rcx], rax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x18], rax
mov qword [rax], rcx
mov qword [rsi + 0x28], rcx
mov rax, qword [rbx + 0x60]
add qword [rdi + 0x60], rax
test dword [rdi + 0x58], 0x100000
je 0x180015cae
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0xa8]
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [0x18001528c]
or dword [rsp + 0x20], 0xffffffff
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x180015cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180015c9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180015bed
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180015be5
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret