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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4d90
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 8]
movzx eax, word [ecx + 0x14]
movzx edx, word [ecx + 0x14]
sub esi, eax
add edx, dword [ecx + 8]
cmp byte [edi + 0xb0], 0x11
mov eax, dword [ecx]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], eax
jne 0x4058d3
push eax
call fcn.0040ceb0
add esp, 4
test al, al
je 0x4057d1
push 0x38
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00449530
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x70]
add esp, 0xc
mov eax, dword [eax]
push dword [eax]
lea eax, [edi + 0x30]
push eax
push esi
push dword [ebp - 0x78]
call fcn.0040ac30
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0040d170
test al, al
jne 0x4057f2
lea ecx, [ebp - 0x70]
call fcn.0040ad80
cmp esi, dword [edi + 4]
jle 0x4058cd
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push 0x10
push eax
movups xmmword [ebp - 0x20], xmm0
lea eax, [edi + 0xbc]
jmp 0x405942
mov ecx, 0x4df980
call fcn.004097a0
mov esi, eax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x38]
push eax
call fcn.0040ce60
push eax
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00404f50
lea ecx, [ebp - 0x38]
call fcn.00403f90
mov eax, dword [esi + 4]
cmp dword [ebp - 0x88], eax
jne 0x405847
mov eax, dword [edi + 0x17c]
cmp byte [eax], 0
jne 0x405847
lea ecx, [ebp - 0x70]
call fcn.0040ad80
mov esi, dword [ebp - 0x84]
jmp 0x4057d1
lea ecx, [ebp - 0x70]
call fcn.0040d0b0
test al, al
je 0x4058c0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x70]
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.0040bc20
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, eax
je 0x4058b8
sub eax, ecx
mov byte [ebp - 0x71], 0
movzx esi, ax
lea eax, [ebp - 0x71]
push eax
push dword [0x4dc01c]
lea eax, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404420
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx]
mov ecx, edi
push dword [eax]
mov eax, dword [ebp - 0x1c]
add eax, dword [0x4dc01c]
push esi
push eax
call fcn.00405dd0
lea ecx, [ebp - 0x1c]
call fcn.004045d0
lea ecx, [ebp - 0x70]
call fcn.0040ad80
jmp 0x40594b
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
cmp byte [edi + 0xb0], 1
jne 0x4058e5
sub edx, 8
add esi, 8
mov dword [ebp - 0x78], edx
push 0x80
push eax
push 0
push esi
push edx
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40592f
nop dword [eax]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405914
cmp eax, 0x2714
jne 0x40596a
push 0x80
push dword [ebp - 0x7c]
push 0
push esi
push dword [ebp - 0x78]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x405900
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push 0x10
push eax
mov eax, dword [ebp - 0x7c]
movups xmmword [ebp - 0x30], xmm0
add eax, 4
push eax
call fcn.0041b010
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret 4
push str.send_to_failed
push dword [ebp - 0x7c]
mov ecx, edi
call fcn.004052a0
xor al, al
jmp 0x40594d