Function at 0x100013d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003a5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x610
mov eax, dword [0x10006040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x610], 0x6c6d5f61
lea eax, [ebp - 0x60c]
lea ecx, [ebp - 0x620]
push eax
movups xmmword [ebp - 0x478], xmm0
push ecx
movups xmmword [ebp - 0x468], xmm0
lea ecx, [ebp - 0x478]
movaps xmm0, xmmword [0x10004230]
movups xmmword [ebp - 0x620], xmm0
call fcn.10001ec0
push str.Z0ZIB5I229IZ22
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0
call fcn.10002110
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x430]
call fcn.10001290
add esp, 4
lea eax, [ebp - 0x430]
cmp dword [ebp - 0x41c], 0xf
cmova eax, dword [ebp - 0x430]
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x608]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001577
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0xf
jbe 0x100014f9
mov edx, dword [ebp - 0x430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100014ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d1
push ecx
push edx
call fcn.10002ece
add esp, 8
mov ecx, dword [ebp - 0x434]
mov byte [ebp - 0x430], 0
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
cmp ecx, 0xf
jbe 0x1000154e
mov edx, dword [ebp - 0x448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001544
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d1
push ecx
push edx
call fcn.10002ece
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.100016f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10002976
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x100014bf
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x458], xmm0
push 0x2632
mov word [ebp - 0x458], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x456], ax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x60c]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100014bf
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x100015ee
mov eax, dword [edi]
push 0
push dword [edi + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100014bf
push 0
push 0x400
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10001632
cmp eax, 0x400
jae 0x100016d7
mov byte [ebp + eax - 0x418], 0
jmp 0x1000163b
cmp eax, 0xffffffff
je 0x100014bf
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0xf
jbe 0x1000167e
mov edx, dword [ebp - 0x430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001674
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100016d1
push ecx
push edx
call fcn.10002ece
add esp, 8
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
cmp ecx, 0xf
jbe 0x1000154e
mov edx, dword [ebp - 0x448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001544
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001544
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.10002aa7
int3