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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca353
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 0x45fa8e
jmp 0x45fc44
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 0x45fb5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
jne 0x45fb5f
mov dword [ebp - 0x54], 0
jmp 0x45fb11
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xa
jge 0x45fb5f
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 0x45fb49
jmp 0x45fb5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
je 0x45fb5d
jmp 0x45fb5f
jmp 0x45fb08
cmp dword [ebp - 0x50], 0
jge 0x45fc37
cmp dword [ebp - 0x4c], 0x2733
je 0x45fc37
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 0x45fc28
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xc], 0
je 0x45fc28
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.00587d2b
mov esp, ebp
pop ebp
ret 0x10