Function at 0x4b775f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1b8], 0
lea ecx, [ebp - 0x14]
call fcn.00401420
mov dword [ebp - 4], 0
cmp dword [0x5edf44], 0
je 0x4b77e4
push 0x6784a8
mov ecx, dword [ebp - 0x208]
call fcn.004bd576
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
jmp 0x4b79f0
cmp dword [0x5edf54], 0
je 0x4b79ca
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [0x5edf48]
push ecx
mov ecx, dword [ebp - 0x208]
call fcn.004b7d86
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x4b7844
push 0
push 0x5c5278
push str.Can_not_bind_server_by_this_port.
mov ecx, dword [ebp - 0x208]
call fcn.00564245
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
jmp 0x4b79f0
mov word [ebp - 0x1bc], 0x101
lea edx, [ebp - 0x1b4]
push edx
mov ax, word [ebp - 0x1bc]
push eax
call sub.WSOCK32.dll_WSAStartup
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4b78a0
push 0
push 0x5c52a4
push 0x5c52ac
mov ecx, dword [ebp - 0x208]
call fcn.00564245
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
jmp 0x4b79f0
push 0x40
push 0
lea ecx, [ebp - 0x204]
push ecx
call fcn.0054bf90
add esp, 0xc
mov edx, dword [0x5edf50]
push edx
push 0x5c52c0
lea eax, [ebp - 0x204]
push eax
call fcn.0054c6e3
add esp, 0xc
mov word [ebp - 0x24], 2
lea ecx, [ebp - 0x204]
push ecx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x20], eax
mov dx, word [0x5edf4c]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_connect
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0xffffffff
jne 0x4b793d
push 0
push 0x5c52c4
push 0x5c52cc
mov ecx, dword [ebp - 0x208]
call fcn.00564245
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
jmp 0x4b79f0
mov dword [0x67aa64], 1
mov ecx, dword [ebp - 0x208]
call fcn.004ae97a
push 0
push 0xc
push 0x5c52e4
mov edx, dword [ebp - 0x10]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
push eax
push 1
push str.TEST_COMMAND
call fcn.004b74bd
add esp, 0xc
mov ecx, dword [0x5edf4c]
push ecx
mov edx, dword [0x5edf50]
push edx
push str.Already_connect_to__s____Port_:__d
lea eax, [ebp - 0x14]
push eax
call fcn.0055f827
add esp, 0x10
push 0
push 0x5c5328
lea ecx, [ebp - 0x14]
call fcn.005287a0
push eax
mov ecx, dword [ebp - 0x208]
call fcn.00564245
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
jmp 0x4b79e1
push 0
push 0x5c5330
push str.Enable_Net_PLC_in_extra_setting_dialog_first.
mov ecx, dword [ebp - 0x208]
call fcn.00564245
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret