Function at 0x40beb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x38]
cmp ecx, edi
je 0x40bedc
push 0xffffffffffffffff
push 0
push edi
call fcn.00408440
cmp dword [esi + 0x58], 0
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x50], ebx
mov byte [esi + 0x35], 1
jne 0x40befd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x58], eax
cmp dword [edi + 0x14], 8
jb 0x40bf07
mov eax, dword [edi]
jmp 0x40bf09
mov eax, edi
push ebx
push eax
push 0x43dd60
push 0x24
push str.LDConnectClient::connectService
call fcn.00427290
add esp, 0x14
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40bf50
push str.socket_error1
push 0x2a
push str.LDConnectClient::connectService
call fcn.00427290
add esp, 0xc
xor al, al
jmp 0x40c0e5
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
jne 0x40bf85
push str.socket_error2
push 0x33
push str.LDConnectClient::connectService
call fcn.00427290
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x40c0e5
mov eax, 2
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x1c0]
push edi
push eax
call fcn.0042b4d0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40bfa6
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [ebp - 0x1ac], 0x10
mov dword [ebp - 0x10], eax
jb 0x40bfc8
push dword [ebp - 0x1c0]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
xor ebx, ebx
mov edi, 0x1f4
lea ebx, [ebx]
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40c05a
inc ebx
mov eax, edi
imul eax, ebx
mov ecx, 0xea60
cmp eax, 0xea60
cmovg eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.connect_error_._try
push 0x4d
push str.LDConnectClient::connectService
call fcn.00427290
add edi, 0x1f4
add esp, 0xc
cmp edi, 0x157c
jl 0x40bfe0
push str.connect_error_3
push 0x57
push str.LDConnectClient::connectService
call fcn.00427290
add esp, 0xc
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x40c0e5
push dword [esi + 0x30]
push str.connected_server.__d
push 0x5d
push str.LDConnectClient::connectService
call fcn.00427290
mov edi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 0xc
call edi
add esp, 0x14
test eax, eax
je 0x40c09f
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], vtable.MemberFuncRunable_class_LDConnectClient_.0
mov dword [eax + 4], esi
mov dword [eax + 8], 0x40c100
jmp 0x40c0a1
xor eax, eax
push eax
lea ecx, [esi + 0x7c]
call fcn.0042f1a0
push 0xc
call edi
add esp, 4
test eax, eax
je 0x40c0d5
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], vtable.MemberFuncRunable_class_LDConnectClient_.0
mov dword [eax + 4], esi
mov dword [eax + 8], 0x40c420
jmp 0x40c0d7
xor eax, eax
push eax
lea ecx, [esi + 0x8c]
call fcn.0042f1a0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x35], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.00436c68
mov esp, ebp
pop ebp
ret 8