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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3323
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x639490]
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 0x4599de
jmp 0x459b94
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 0x459aaf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
jne 0x459aaf
mov dword [ebp - 0x54], 0
jmp 0x459a61
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xa
jge 0x459aaf
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 0x459a99
jmp 0x459aaf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
je 0x459aad
jmp 0x459aaf
jmp 0x459a58
cmp dword [ebp - 0x50], 0
jge 0x459b87
cmp dword [ebp - 0x4c], 0x2733
je 0x459b87
lea ecx, [ebp - 0x44]
call fcn.00409040
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.00408800
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.00408be0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040f660
lea ecx, [ebp - 0x80]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.00406730
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x2d]
test ecx, ecx
jne 0x459b78
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xc], 0
je 0x459b78
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x64], esp
lea eax, [ebp - 0x44]
push eax
call fcn.00409a50
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.00409a30
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.00581c71
mov esp, ebp
pop ebp
ret 0x10