Function at 0x40b9c0
Capabilities:
Connect socket
Create thread
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x19d8
call fcn.0041d250
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x19d4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x19e4]
push esi
push edi
push 0x7fe
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x9e6]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x28], ebp
mov word [esp + 0x9ec], ax
call fcn.00410d60
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x5e5]
push ebx
push edx
mov byte [esp + 0x5ec], bl
call fcn.00410d60
add esp, 0xc
lea eax, [esp + 0x450]
push eax
push 0x202
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40ba58
push str.StartLANConnec__Active_Node__:_Failed_WSAStartup...
call fcn.00404e10
add esp, 4
or eax, 0xffffffff
jmp 0x40bd12
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ba87
push str.Active_Node_:_Invalid_Socket
call fcn.00404e10
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffe
jmp 0x40bd12
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 2
push 0x1e63
mov dword [esp + 0x28], eax
mov word [esp + 0x24], cx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x24]
push edx
push edi
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40bae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Active_node_:_Connect_to_Server_failed...
call fcn.00404e10
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffe
jmp 0x40bd12
push ebp
push str.Active_Node_Server___S__connected...
call fcn.00404e10
mov eax, esi
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bb00
sub eax, edx
je 0x40bb56
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bb10
push ebx
sub eax, edx
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40bb2f
push str.Active_node_:_Send_to_Server_failed...
jmp 0x40baca
push esi
lea eax, [esp + 0x9e4]
push str.Active_node_:_StartLanConnec__Command___S_sent_to_LAN_server_successfully...
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x9ec]
add esp, 0xc
push ecx
call fcn.00404e10
add esp, 4
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push ebx
push 0x400
lea edx, [esp + 0x5e8]
push edx
push edi
call ebp
push 0x42843c
lea eax, [esp + 0x5e4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40bd10
push ebx
push 0x400
lea ecx, [esp + 0x5e8]
push ecx
push edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x40bca9
cmp esi, 0xffffffff
je 0x40bca9
cmp esi, ebx
jle 0x40bcca
push 0x800
lea edx, [esp + 0x11e4]
push ebx
push edx
mov byte [esp + esi + 0x5ec], bl
call fcn.00410d60
add esp, 0xc
push 0x400
lea eax, [esp + 0x11e4]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x5ec]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11e4]
push 0x4281c0
push eax
mov dword [esp + 0x20], ebx
call fcn.0040ffd9
add esp, 0xc
cmp eax, ebx
je 0x40bc3c
push eax
lea ecx, [esp + 0x44]
push 0x64
push ecx
call fcn.0040ee2f
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.0040ee2f
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x40]
push edx
push str.Got_ACCH_TCP_Command_:__s
mov dword [esp + 0x3c], eax
call fcn.00404e10
add esp, 8
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x38]
push ecx
push 0x406e30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40bc86
push str.CreateThread_Failed_ProcessCommand_in_StartLANConnec__Active_node_
call fcn.00404e10
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x400
lea edx, [esp + 0x5e8]
push edx
push edi
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40bba3
push str.Active_node:_StartLANConnec_recv___return_0_or__1_so_closing_socket_for_server.
call fcn.00404e10
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffd
jmp 0x40bd12
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Active_node_:_LAN_server_disconnected...
call fcn.00404e10
add esp, 4
push esi
lea eax, [esp + 0x9e4]
push str.iRet2___d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x9ec]
add esp, 0xc
push ecx
call fcn.00404e10
add esp, 4
or eax, 0xffffffff
jmp 0x40bd12
xor eax, eax
mov ecx, dword [esp + 0x19e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e6d9
add esp, 0x19d8
ret