Function at 0x180004d90
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 [0x180087020]
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 0x180004e44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [rsp + 0x28]
mov esi, eax
test cl, 0x10
je 0x180004dec
mov edi, 2
jmp 0x180004e14
test cl, 0x20
je 0x180004df8
mov edi, 5
jmp 0x180004e14
test dil, cl
je 0x180004e04
mov edi, 4
jmp 0x180004e14
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 0x18000503b
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], edi
mov dword [rbx + 0xa8], esi
jmp 0x18000500d
mov eax, dword [rbx + 0xe0]
test eax, eax
jne 0x180004f5b
test byte [rsp + 0x28], 0x10
je 0x180004f5b
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x180004e88
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 0x180004e98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0xa0], edi
mov edi, 2
jmp 0x180005001
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 0x180004ee0
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.1800061a0
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.1800069d0
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 0x180004f56
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004f56
test eax, eax
jne 0x18000503b
mov edi, 1
test byte [rsp + 0x28], 1
je 0x180004fa1
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x180004f76
mov rcx, rbx
call fcn.180005050
mov edi, eax
jmp 0x180004f9d
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 0x180005019
test byte [rsp + 0x28], 2
je 0x180004fe7
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x180004fbc
mov rcx, rbx
call fcn.1800051b0
mov edi, eax
jmp 0x180004fe3
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 0x180005019
test byte [rsp + 0x28], 0x20
je 0x180005019
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.180034f80
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.180001b20
int3