Function at 0x4193d6
Capabilities:
Create tcp socket
Create thread
Get socket status
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
mov dword [ebp - 0x10], eax
pop eax
xor ebx, ebx
push 6
push eax
push 2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], 0x1e
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x419435
push 0x12030
push str.ProxomiTron_Application_Error
push str.Cant_open_listener_socket
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4196c6
push esi
call fcn.0041d250
pop ecx
lea eax, [ebp - 0x28]
push 4
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x4283d0]
push dword [ebp + 8]
and eax, 0x400
mov word [ebp - 0x20], 2
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x419492
push str.RError_binding_to_listener_port
jmp 0x4194a4
push 0xa
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4194b0
push str.RError_calling_listen__
call fcn.00410924
pop ecx
push esi
jmp 0x4196c0
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
lea eax, [ebp - 0x130]
push str.WListening_on_port__d
push eax
call esi
lea eax, [ebp - 0x130]
push eax
call fcn.00410924
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jne 0x419500
push edi
lea eax, [ebp - 0x130]
push str.____waiting_for_connections_on__d____
push eax
call esi
lea eax, [ebp - 0x130]
push 0xff00
push eax
call fcn.004118fc
add esp, 0x14
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [0x4284f4], ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041dc70
pop ecx
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x234]
push ebx
push eax
push 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x419685
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_accept]
cmp dword [0x4284f4], ebx
mov dword [ebp + 8], eax
jne 0x4196c6
cmp eax, 0xffffffff
je 0x4196bd
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
je 0x419659
test byte [0x4283d1], 4
je 0x4195db
mov eax, dword [0x428294]
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push dword [eax + 0x74]
call ebx
push dword [ebp - 0x1c]
mov edx, eax
mov dword [ebp - 8], edx
call ebx
mov ecx, dword [ebp - 8]
cmp eax, ecx
jb 0x4195d9
mov eax, dword [0x428294]
push dword [eax + 0x78]
call ebx
push dword [ebp - 0x1c]
mov edx, eax
mov dword [ebp - 8], edx
call ebx
mov ecx, dword [ebp - 8]
cmp eax, ecx
jbe 0x419657
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4195ee
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x419692
call fcn.0041012b
push dword [ebp - 0x1c]
call edi
push eax
lea eax, [ebp - 0x130]
push str.R_Received_external_connection_from___s__
push eax
call esi
lea eax, [ebp - 0x130]
push eax
call fcn.00410924
add esp, 0x10
push dword [ebp - 0x1c]
call edi
push eax
lea eax, [ebp - 0x130]
push str._WARNING__nAn_unauthorized_access_attempt_has_been_ndetected_from_the_IP_address___s_._nThis_attempt_has_been_blocked_and_the_IP_nhas_also_been_posted_to_the_message_log_nif_you_wish_to_copy_it_to_the_clipboard.
push eax
call esi
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x12030
lea eax, [ebp - 0x130]
push str.ProxomiTron_Application_Error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xc], 1
jmp 0x419692
xor ebx, ebx
push 4
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, ebx
pop ecx
je 0x41969f
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], ebx
mov dword [eax], ecx
mov ecx, 0x4196cd
jne 0x41967a
mov ecx, 0x4196db
push eax
push ebx
push ecx
call sub.MSVCRT.dll__beginthread
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.0041dcdc
pop ecx
cmp dword [0x4284f4], ebx
jne 0x4196c6
jmp 0x41950c
push 0x12030
push str.ProxomiTron_Application_Error
push str.malloc___error_in_start_listener
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x4284f4], ebx
jne 0x4196c6
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret