Function at 0x40246c
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 5
add esp, 0xfffff004
push eax
dec eax
jne 0x402475
mov eax, dword [ebp - 4]
add esp, 0xfffffee4
push ebx
push esi
push edi
mov esi, 0x442bec
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
push 0x438338
push esi
call fcn.00401654
add esp, 8
push dword [ebp - 0x14]
push esi
call fcn.00401654
add esp, 8
push 0x438352
push esi
call fcn.00401654
add esp, 8
push dword [ebp - 0x10]
push esi
call fcn.00401654
add esp, 8
push 0x43835b
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
jmp 0x402516
push 0x43a17c
call fcn.0040661c
pop ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
push ebx
call fcn.00402760
add esp, 0xc
test eax, eax
jne 0x402545
push ebx
call sub.WSOCK32.DLL_closesocket
push edi
call sub.WSOCK32.DLL_closesocket
jmp 0x402490
push 0x5000
push 0
lea ecx, [ebp - 0x5120]
push ecx
call fcn.00404e1c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x120], eax
xor eax, eax
jmp 0x402571
cmp ebx, dword [ebp + eax*4 - 0x11c]
je 0x402579
inc eax
cmp eax, dword [ebp - 0x120]
jb 0x402567
cmp eax, dword [ebp - 0x120]
jne 0x402597
cmp dword [ebp - 0x120], 0x40
jae 0x402597
mov dword [ebp + eax*4 - 0x11c], ebx
inc dword [ebp - 0x120]
push 0
push 0
push 0
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebx + 1]
push ecx
call sub.WSOCK32.DLL_select
inc eax
jne 0x4025be
cmp dword [0x43b5a8], 0x2714
je 0x40255b
jmp 0x4025f4
lea eax, [ebp - 0x120]
push eax
push ebx
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x4025e8
push 0
push 0x5000
lea edx, [ebp - 0x5120]
push edx
push ebx
call sub.WSOCK32.DLL_recv
mov dword [ebp - 0xc], eax
jmp 0x4025f4
push 5
call sub.KERNEL32.DLL_Sleep
jmp 0x40255b
cmp dword [ebp - 0xc], 0
jg 0x402614
push str.____There_is_a_error...Create_a_new_connection.
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
jmp 0x402490
push str.___Connect_OK______n___xlcTeam_congratulations_
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push str.___Make_a_Connection_to
push esi
call fcn.00401654
add esp, 8
push dword [ebp - 0x1c]
push esi
call fcn.00401654
add esp, 8
push str.on_port:
push esi
call fcn.00401654
add esp, 8
push dword [ebp - 0x18]
push esi
call fcn.00401654
add esp, 8
push str.....
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
push 0x43a17c
call fcn.0040661c
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00402760
add esp, 0xc
test eax, eax
jne 0x4026ad
push ebx
call sub.WSOCK32.DLL_closesocket
push edi
call sub.WSOCK32.DLL_closesocket
jmp 0x402614
push 0
push dword [ebp - 0xc]
lea edx, [ebp - 0x5120]
push edx
push edi
call sub.WSOCK32.DLL_send
inc eax
jne 0x4026dc
push str.____Send_failed.
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
jmp 0x402614
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push 0x5000
push 0
lea eax, [ebp - 0x5120]
push eax
call fcn.00404e1c
add esp, 0xc
push str.___All_Connect_OK_
push esi
call fcn.00401654
add esp, 8
push esi
call fcn.004015f0
pop ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0x401e7c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x402490
push 0
push eax
call sub.KERNEL32.DLL_TerminateThread
jmp 0x40273f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret