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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdx, qword [rcx + 0xb8]
lea r8, [rsp + 0x28]
mov rbx, rcx
mov edi, 1
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x180004af4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [rsp + 0x28]
mov esi, eax
test cl, 0x10
je 0x180004a9c
mov edi, 2
jmp 0x180004ac4
test cl, 0x20
je 0x180004aa8
mov edi, 5
jmp 0x180004ac4
test dil, cl
je 0x180004ab4
mov edi, 4
jmp 0x180004ac4
test cl, 2
mov edi, 0
mov eax, 3
cmovne edi, eax
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
test eax, eax
je 0x180004ceb
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], edi
mov dword [rbx + 0xa8], esi
jmp 0x180004cbd
mov eax, dword [rbx + 0xe0]
test eax, eax
jne 0x180004c0b
test byte [rsp + 0x28], 0x10
je 0x180004c0b
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x180004b38
mov rdx, qword [rbx + 0xb8]
lea r8d, [rax + 0x23]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x180004b48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0xa0], edi
mov edi, 2
jmp 0x180004cb1
mov dword [rbx + 0xe0], edi
mov dword [rbx + 0xe4], edi
lea rdi, [rbx + 0x2c0]
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rsp + 0x20], eax
mov eax, 1
lock xadd dword [rsp + 0x20], eax
add eax, 1
mov dword [rdi + 0x28], eax
jne 0x180004b90
mov eax, 1
lock xadd dword [rsp + 0x20], eax
inc eax
mov dword [rdi + 0x28], eax
lea rdx, [rbx + 0x278]
mov rcx, rdi
call fcn.180005ec0
mov rax, qword [rdi]
lea rdx, [rbx + 0x278]
mov rcx, rdi
call qword [rax]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, rdi
mov dword [rdi + 0x20], 0
mov dword [rdi + 0x24], eax
mov dword [rdi + 0x1c], eax
mov dword [rdi + 0x18], 0
mov dword [rdi + 0x30], 1
call fcn.1800066f0
mov rcx, qword [rbx + 0xb0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180004c06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004c06
test eax, eax
jne 0x180004ceb
mov edi, 1
test byte [rsp + 0x28], 1
je 0x180004c51
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x180004c26
mov rcx, rbx
call fcn.180004d00
mov edi, eax
jmp 0x180004c4d
mov edi, 4
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], edi
xor edi, edi
mov dword [rbx + 0xa8], eax
mov dword [rbx + 0xac], 1
test edi, edi
je 0x180004cc9
test byte [rsp + 0x28], 2
je 0x180004c97
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x180004c6c
mov rcx, rbx
call fcn.180004e60
mov edi, eax
jmp 0x180004c93
mov eax, 3
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], eax
xor edi, edi
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0xac], 1
test edi, edi
je 0x180004cc9
test byte [rsp + 0x28], 0x20
je 0x180004cc9
mov eax, dword [rsp + 0x40]
mov edi, 5
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], edi
mov dword [rbx + 0xa8], eax
xor edi, edi
mov dword [rbx + 0xac], 1
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18001d7b0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.180001aa0
int3