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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
test byte [rdx + 0x59], 2
mov edi, dword [rsp + 0xd8]
mov rsi, rcx
mov rbx, rdx
mov r12, r8
mov r13d, r9d
jne 0x46a874
cmp edi, 0x10
je 0x46aa85
cmp edi, 0x1c
jne 0x46ab31
mov rdx, qword [0x004d35f0]
xor r9d, r9d
mov r8d, edi
mov rcx, rbx
call fcn.00469600
test eax, eax
jne 0x46aa4a
mov rax, qword [rsp + 0xe0]
mov rbp, qword [rbx + 8]
lea r9, [rsp + 0x6c]
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x48], 0
mov r8d, r13d
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x58], 0
mov rdx, r12
mov qword [rsi + 0x78], rax
lea rax, [rsi + 0x40]
mov dword [rsi + 8], 5
mov qword [rsi + 0x70], rbx
mov rcx, qword [rbx + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x46a9b0
mov ecx, dword [rbx + 0x58]
test ecx, 0x40000
je 0x46a9c1
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
add qword [rbx + 0x68], 1
mov r9d, edx
lea r8d, [rdx + 1]
test r9d, r9d
mov edx, r8d
mov dword [rbx + 0x7c], r8d
jne 0x46a956
test cl, 1
jne 0x46ab00
test cl, 0x40
jne 0x46a95f
mov r8d, ecx
or r8d, 0x40
and ecx, 0x20
mov dword [rbx + 0x58], r8d
je 0x46a953
mov rcx, qword [rbx + 8]
add dword [rcx + 8], 1
mov r8d, edx
test r8d, r8d
jle 0x46aac0
lea rdx, [rbp + 0x20]
mov qword [rsi + 0x10], rdx
mov rcx, qword [rbp + 0x28]
lea rdx, [rsi + 0x10]
mov qword [rsi + 0x18], rcx
mov qword [rcx], rdx
mov qword [rbp + 0x28], rdx
mov rdx, qword [rbp + 0x48]
mov qword [rsi + 0x68], 0
test rdx, rdx
je 0x46aab0
mov rcx, qword [rdx + 0x68]
mov qword [rsi + 0x68], rcx
mov qword [rdx + 0x68], rsi
mov qword [rbp + 0x48], rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46aa40
mov edx, r13d
mov rcx, r12
call fcn.0044ad30
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], rax
add qword [rbx + 0x60], rax
add dword [rbx + 0x78], 1
mov ecx, edx
lea eax, [rdx + 1]
add qword [rbx + 0x68], 1
test ecx, ecx
mov edx, eax
mov dword [rbx + 0x7c], eax
jne 0x46aa0f
mov eax, dword [rbx + 0x58]
test al, 1
jne 0x46aa60
test al, 0x40
jne 0x46aa13
mov ecx, eax
or ecx, 0x40
test al, 0x20
mov dword [rbx + 0x58], ecx
je 0x46aa0d
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov eax, edx
test eax, eax
jle 0x46aa91
lea rax, [rbp + 0x20]
add rsi, 0x10
mov qword [rsi], rax
mov rax, qword [rbp + 0x28]
mov qword [rsi + 8], rax
mov qword [rax], rsi
xor eax, eax
mov qword [rbp + 0x28], rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x46aa51
mov ecx, eax
call fcn.0044c5f0
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, str.src_win_udp.c
lea rcx, str.____handle_____flags__UV__HANDLE_CLOSING___0
mov r8d, 0x1c0
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x46aaf0
mov eax, dword [rbx + 0x7c]
jmp 0x46aa0f
mov rdx, qword [0x004d35e0]
jmp 0x46a85e
lea rdx, str.src_win_udp.c
lea rcx, str.__handle____activecnt___0
mov r8d, 0x1c0
call fcn.0048c6c0
jmp 0x46aa13
mov qword [rsi + 0x68], rsi
mov qword [rbp + 0x48], rsi
jmp 0x46aa51
lea rdx, str.src_win_udp.c
lea rcx, str.__handle____activecnt___0
mov r8d, 0x1b8
mov dword [rsp + 0x5c], eax
call fcn.0048c6c0
mov eax, dword [rsp + 0x5c]
jmp 0x46a95f
mov edx, dword [rbx + 0x7c]
jmp 0x46a9f9
lea rcx, str.____handle_____flags__UV__HANDLE_CLOSING___0
lea rdx, str.src_win_udp.c
mov r8d, 0x1b8
mov dword [rsp + 0x5c], eax
call fcn.0048c6c0
mov ecx, dword [rbx + 0x58]
mov eax, dword [rsp + 0x5c]
test cl, 0x40
jne 0x46ab40
mov edx, dword [rbx + 0x7c]
jmp 0x46a93b
mov eax, 0xfffff019
jmp 0x46aa51
mov r8d, dword [rbx + 0x7c]
jmp 0x46a956