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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5caa93
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x2d]
test ecx, ecx
je 0x46020e
jmp 0x4603c4
mov edx, dword [ebp - 0x48]
add edx, 0x4c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 2
mov word [ebp - 0x20], ax
movzx ecx, word [ebp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x50], 0
jge 0x4602df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
jne 0x4602df
mov dword [ebp - 0x54], 0
jmp 0x460291
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xa
jge 0x4602df
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jl 0x4602c9
jmp 0x4602df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
je 0x4602dd
jmp 0x4602df
jmp 0x460288
cmp dword [ebp - 0x50], 0
jge 0x4603b7
cmp dword [ebp - 0x4c], 0x2733
je 0x4603b7
lea ecx, [ebp - 0x44]
call fcn.00408fb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 3
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 0x3c], 1
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00408770
add esp, 8
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
push eax
push str.sendto_error:
lea ecx, [ebp - 0x80]
push ecx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040f5d0
lea ecx, [ebp - 0x80]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004066a0
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x2d]
test ecx, ecx
jne 0x4603a8
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xc], 0
je 0x4603a8
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x64], esp
lea eax, [ebp - 0x44]
push eax
call fcn.004099c0
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
call eax
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004099a0
mov ecx, dword [ebp - 0x48]
add ecx, 0x4c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058849e
mov esp, ebp
pop ebp
ret 0x10