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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c05a5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
je 0x4059e7
mov edx, dword [edi + 0xa8]
mov dword [ebp - 0x38], edx
jmp 0x4059f0
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
sub esp, 8
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405a11
lock inc dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov ecx, edi
call edx
lea eax, [ebx + 0x20]
push eax
movzx eax, byte [ebx]
push eax
movzx eax, word [ebx + 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406a30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.00472c3c
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x34]
add esp, 4
mov esi, eax
cmp dword [ebp - 0x20], 0xf
cmova edx, dword [ebp - 0x34]
inc ecx
push ecx
push edx
push esi
call fcn.0049d000
add esp, 0xc
push 8
call fcn.00472c3c
add esp, 4
mov dword [eax], edi
push 0
push eax
push 0x4068a0
push 0
push 0xbb8
mov dword [eax + 4], esi
call dword [sym.imp.WINMM.dll_timeSetEvent]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405aa4
lock inc dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00406b00
movzx eax, byte [ebx]
lea ecx, [ebp - 0x1c]
mov dx, word [ebx + 0x14]
xorps xmm0, xmm0
push eax
lea eax, [ebx + 0x20]
movq qword [ebp - 0x1c], xmm0
push eax
mov dword [ebp - 0x14], 0
call fcn.004149f0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 0x6c]
add esp, 8
push 0x10
push eax
mov eax, dword [ebp - 0x18]
push 0
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x405b44
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x405b25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bba
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x405b74
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405b6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bba
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x405b9c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405b9c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x405b9c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret 8
call fcn.004a074e
int3