Function at 0x406f17
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
sub esp, 0x50c
push ebx
push esi
push edi
mov esi, ecx
push ebp
push 0
lea edi, [esi + 0x421c]
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], 0
push dword [eax + 8]
push dword [esi + 0xb0]
mov eax, str._x:_x:
jne 0x406f49
mov eax, str._x:_x:_x:
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [edi]
mov ecx, dword [eax]
mov dword [ecx + 0x18], 1
mov eax, dword [edi]
mov ecx, dword [esi + 0x38]
cmp dword [eax + 8], 1
sbb edx, edx
mov ebp, dword [ecx + 0xc]
and dl, 0xfe
xor ebx, ebx
add edx, 0x62
lea eax, [ebp + 1]
push ebx
mov dword [ecx + 0xc], eax
lea eax, [esp + 0x1c]
push ebx
push eax
push edx
lea eax, [esp + 0x12c]
push ebp
push eax
call fcn.00408669
mov eax, dword [edi]
mov ecx, dword [esi + 0x38]
push dword [eax]
push dword [esi + 0x20]
call fcn.00408cab
lea ecx, [esp + 0x11c]
push ecx
call fcn.00418970
lea ecx, [esp + 0x120]
add esp, 4
mov ebp, eax
push ebx
push ecx
call fcn.00418970
lea ecx, [esp + 0x124]
add esp, 4
mov edx, dword [edi]
push eax
push ecx
mov eax, dword [edx]
push dword [eax + 8]
call sub.WSOCK32.dll_send
cmp ebp, eax
jg 0x407116
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [edx + 0x20], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
mov dword [eax + 0x1c], edx
mov ecx, dword [edi]
cmp dword [ecx + 0x70], 0
jne 0x40700b
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x70], edx
mov ebx, dword [edi]
cmp dword [ebx + 8], 0
jne 0x407073
mov ebp, dword [ebx + 4]
add ebx, 0x10
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x407036
push eax
call fcn.004188b0
add esp, 4
push dword [esp + 0x10]
call fcn.0041ad10
add esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x14]
lea edx, [ebx + 0x18]
mov dword [ebx + 0x14], eax
lea eax, [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x20], ecx
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x24], eax
mov edx, dword [ebp + 0x28]
mov dword [ebx + 0x28], edx
mov ecx, dword [ebp + 0x2c]
mov dword [ebx + 0x2c], ecx
mov eax, dword [esi + 0x418c]
push dword [eax + 0x318]
call fcn.004188d0
add esp, 4
mov ecx, dword [edi]
mov dword [ecx + 0x50], eax
mov eax, dword [edi]
xor ecx, ecx
cmp dword [eax + 8], ecx
jne 0x4070e8
cmp dword [eax + 0x2c], ecx
lea edx, [eax + 0x28]
jne 0x4070e8
cmp dword [edx], ecx
jne 0x4070e8
mov ecx, esi
call fcn.004077d0
test eax, eax
je 0x4070c0
push 1
mov ecx, esi
call fcn.00407271
mov eax, dword [edi]
mov dword [eax + 0x7c], 8
jmp 0x4070c9
mov eax, dword [edi]
mov dword [eax + 0x7c], 9
push 0x20
mov eax, dword [edi]
mov ecx, dword [eax]
mov eax, dword [esi]
push dword [ecx + 8]
push 0x483
mov ecx, esi
call dword [eax + 0xa0]
mov eax, 1
jmp 0x407120
mov dword [eax + 0x58], 0xffffffff
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
push esi
push 0x40712b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi]
mov dword [ecx + 0x58], eax
mov ecx, dword [edi]
mov eax, 1
cmp dword [ecx + 0x58], ebx
jne 0x407120
push ebx
mov ecx, esi
call fcn.00407e31
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50c
ret