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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8e15
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x624040]
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 0x405f87
mov edx, dword [edi + 0xa8]
mov dword [ebp - 0x38], edx
jmp 0x405f90
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 0x405fb1
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.004070b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.0048339c
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.00591d00
add esp, 0xc
push 8
call fcn.0048339c
add esp, 4
mov dword [eax], edi
push 0
push eax
push 0x406f20
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 0x406044
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.00407180
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.00415430
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 0x4060e4
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4060c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40615a
push ecx
push edx
call fcn.0048335e
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 0x406114
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40610a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40615a
push ecx
push edx
call fcn.0048335e
add esp, 8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40613c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40613c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40613c
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.004830fa
mov esp, ebp
pop ebp
ret 8
call fcn.0059539e
int3