Function at 0x4beea4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
enter 0x4c, 1
push ebx
push ecx
push edx
push esi
mov dword [ebp - 0x50], ebx
lea eax, [ebp - 0x1c]
mov ebx, 0x5bb72c
mov ecx, 0
call fcn.00423ae0
lea eax, [ebp - 0x40]
mov ebx, 0
mov ecx, 0xc
call fcn.004207ce
jmp 0x4bfb58
cmp dword [0x5c2924], 0
jne 0x4bef15
mov eax, 0x5b868c
mov ebx, 0x39
call fcn.00425f5c
mov eax, str.SimpleServerOpenError._Could_not_load_the_SSL_DLLs__libeay32.dll_and_libssl32.dll_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov dword [ebp - 0x20], 0xffffffc8
jmp 0x4bfb69
mov esi, dword [ebp - 0x50]
cmp dword [esi + 0x8c], 0x20
jne 0x4bef2b
mov dword [esi + 0x8c], 0
cmp dword [esi + 0x8c], 1
jne 0x4bef75
call fcn.004c8ebc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bef75
mov eax, 0x5b86d8
mov ebx, 0x42
call fcn.00425f5c
mov eax, str.SimpleServerOpenERROR:_Exceeded_Maximum_Simple_Server_Accept_Sockets.
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
inc dword [0x5c2978]
mov eax, dword [0x5c2978]
mov dword [esi + 0x5c], eax
mov eax, 0x53b990
mov ebx, 0x5c1d40
mov ecx, 0
call fcn.00423ae0
call fcn.004bee04
mov eax, dword [esi + 0x8c]
mov dword [0x53b9d0], eax
mov eax, dword [esi + 0x90]
mov dword [0x53b9d4], eax
mov eax, dword [esi + 0x94]
mov dword [0x53b9d8], eax
cmp dword [esi + 0x98], 0
je 0x4bf0f5
cmp dword [0x5c290c], 0
je 0x4beffb
mov eax, 0x5b8774
mov ebx, 0x34
call fcn.00425f5c
mov eax, 0x5b87a8
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
mov eax, dword [esi + 0x98]
call fcn.00425c64
lea eax, [ebp - 0x4c]
lea ebx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.0042436c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0x1468
je 0x4bf065
mov eax, 0x5b87b8
mov ebx, 0x72
call fcn.00425f5c
mov eax, str.SimpleServerOpenSSL._Done_Getting_settings_via_SSLCertificateGroupPointer
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov dword [ebp - 0x20], 0xffffffa6
jmp 0x4bfb69
mov eax, dword [ebp - 0x40]
lea ecx, [eax + 0x114]
mov eax, 0x53b9e0
mov ebx, 0x104
mov edx, 0x104
call fcn.004208b6
mov eax, dword [ebp - 0x40]
lea ecx, [eax + 0x218]
mov eax, 0x53bae4
mov ebx, 0x104
mov edx, 0x104
call fcn.004208b6
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
mov dword [0x53bbe8], eax
mov eax, dword [ebp - 0x40]
lea ecx, [eax + 0x10]
mov eax, 0x53bbec
mov ebx, 0x104
mov edx, 0x104
call fcn.004208b6
cmp dword [0x5c290c], 0
je 0x4bf0f5
mov eax, 0x5b883c
mov ebx, 0x39
call fcn.00425f5c
mov eax, str.SimpleServerOpenError_could_not_create_SSL_Listening_Port._SSL_failed._Error_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
cmp dword [0x53b9d0], 1
jne 0x4bf1a2
call fcn.004c7bd8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bf171
mov eax, 0x5b8888
mov ebx, 0x3f
call fcn.00425f5c
mov eax, dword [ebp - 0x1c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b88c8
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [ebp - 0x1c]
call fcn.004a5630
call fcn.00425618
mov eax, str.SimpleServerOpenSSL._Stage_1_complete.
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
cmp dword [0x5c290c], 0
je 0x4bf1a2
mov eax, 0x5b88dc
mov ebx, 0x16
call fcn.00425f5c
mov eax, str.SimpleServerOpenError_could_not_create_Simple_Socket._Error_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
mov eax, dword [esi + 0x80]
mov dword [0x53b9c4], eax
cmp dword [esi + 0x80], 1
jne 0x4bf1c8
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [0x53b994], eax
jmp 0x4bf1d8
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x53b994], eax
mov eax, dword [esi + 0x5c]
mov dword [0x53b998], eax
mov eax, dword [esi + 0x68]
mov dword [0x53b9b8], eax
cmp dword [0x53b994], 0xffff
jne 0x4bf25d
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
mov eax, 0x5b8904
mov ebx, 0x2e
call fcn.00425f5c
mov eax, dword [ebp - 0x1c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8934
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [ebp - 0x1c]
call fcn.004a5630
call fcn.00425618
mov eax, str.SimpleServerOpenError_Listening._Port___IP_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
mov word [0x53b99c], 2
lea ecx, [esi + 4]
mov eax, ecx
call fcn.004260bc
mov eax, 0x5b8948
mov ebx, 0
call fcn.00425f5c
call fcn.0042502c
cmp eax, 0
jne 0x4bf295
mov dword [0x53b9a0], 0
jmp 0x4bf2ce
mov eax, ecx
call fcn.004260bc
call fcn.004206fb
lea ecx, [ebp - 0x14]
mov eax, ecx
mov ebx, 0x10
call fcn.00426028
push ecx
call sub.WSOCK32.dll_inet_addr
mov dword [0x53b9a0], eax
cmp dword [0x53b9a0], 0xffffffff
jne 0x4bf2ce
mov dword [0x53b9a0], 0
movzx eax, word [esi + 0x54]
push eax
call sub.WSOCK32.dll_htons
mov word [0x53b99e], ax
mov eax, 0
mov ebx, dword [0x53b994]
mov ecx, dword [0x53b998]
call fcn.004b780c
mov eax, 0
mov ebx, dword [0x53b994]
mov ecx, dword [0x53b998]
call fcn.004bcec4
push 0x10
mov eax, 0x53b99c
push eax
push dword [0x53b994]
call sub.WSOCK32.dll_bind
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4bf426
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
mov eax, 0x5b8948
mov ebx, 0x18
call fcn.00425f5c
movzx eax, word [esi + 0x54]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8960
mov ebx, 6
call fcn.00425f5c
call fcn.00425618
push dword [0x53b9a0]
call sub.WSOCK32.dll_inet_ntoa
call fcn.004260bc
call fcn.00425618
mov eax, 0x5b8968
mov ebx, 0xb
call fcn.00425f5c
call fcn.00425618
mov eax, dword [esi + 0x80]
call fcn.00425c64
call fcn.00425618
mov eax, str._Error_
mov ebx, 9
call fcn.00425f5c
call fcn.00425618
mov eax, dword [ebp - 0x1c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8980
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [ebp - 0x1c]
call fcn.004a5630
call fcn.00425618
mov eax, str.SimpleServerOpenError_Unknown_WinSock_Version_before_calling_Listen__
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [0x53b994]
mov ebx, 1
mov ecx, 0
mov edx, dword [0x53b9dc]
call fcn.004b5f78
mov dword [0x53b9dc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
cmp dword [esi + 0x80], 0
jne 0x4bf559
mov ax, word [0x5c291a]
cmp ax, 0x101
jne 0x4bf4a9
push 5
push dword [0x53b994]
call sub.WSOCK32.dll_listen
mov dword [ebp - 0x1c], eax
jmp 0x4bf4c2
mov eax, 0x5b8994
mov ebx, 0x35
call fcn.00425f5c
mov eax, str.SimpleServerOpenError_establishing_a_listening_socket._Error_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [0x53b994]
mov ebx, 1
mov ecx, 0
mov edx, dword [0x53b9dc]
call fcn.004b5f78
mov dword [0x53b9dc], 0
mov dword [ebp - 0x20], 0xffffffeb
jmp 0x4bfb69
cmp ax, 2
jne 0x4bf451
push 0x7fffffff
push dword [0x53b994]
call sub.WSOCK32.dll_listen
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bf559
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
mov eax, 0x5b89dc
mov ebx, 0x2f
call fcn.00425f5c
mov eax, dword [ebp - 0x1c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8a0c
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [ebp - 0x1c]
call fcn.004a5630
call fcn.00425618
mov eax, str.SimpleServerOpenListening_Port_setup_okay.
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [0x53b994]
mov ebx, 1
mov ecx, 0
mov edx, dword [0x53b9dc]
call fcn.004b5f78
mov dword [0x53b9dc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
cmp dword [0x5c290c], 0
je 0x4bf58a
mov eax, 0x5b8a20
mov ebx, 0x1a
call fcn.00425f5c
mov eax, str.SimpleServerOpenError_calling_WSAAsyncSelect__._Error_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
mov eax, dword [esi + 0x60]
mov dword [0x53b9b0], eax
mov eax, dword [esi + 0x64]
mov dword [0x53b9b4], eax
cmp dword [esi + 0x80], 1
jne 0x4bf5e5
mov eax, 0x7cab
call fcn.00425c64
mov eax, 0
mov ebx, 0
mov ecx, dword [0x543f9c]
call fcn.00519834
call fcn.00425834
call fcn.00420fdc
push 1
push dword [0x53b9ac]
push eax
push dword [0x53b994]
call sub.WSOCK32.dll_WSAAsyncSelect
mov dword [ebp - 0x1c], eax
jmp 0x4bf625
mov eax, 0x7cab
call fcn.00425c64
mov eax, 0
mov ebx, 0
mov ecx, dword [0x543f9c]
call fcn.00519834
call fcn.00425834
call fcn.00420fdc
push 8
push dword [0x53b9ac]
push eax
push dword [0x53b994]
call sub.WSOCK32.dll_WSAAsyncSelect
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bf702
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
mov eax, 0x5b8a4c
mov ebx, 0x28
call fcn.00425f5c
mov eax, dword [ebp - 0x1c]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8a74
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
push dword [ebp - 0x1c]
call fcn.004a5630
call fcn.00425618
mov eax, 0x5b8a78
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b994]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8a84
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b998]
call fcn.00425c64
call fcn.00425618
mov eax, str.SimpleServerOpenCould_not_add_to_qSimpleServerListeningPorts._Error_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov eax, dword [0x53b994]
mov ebx, 1
mov ecx, 0
mov edx, dword [0x53b9dc]
call fcn.004b5f78
mov dword [0x53b9dc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
inc dword [0x5c2970]
mov eax, dword [0x5c2970]
mov dword [0x53b990], eax
mov eax, dword [esi + 0x88]
mov dword [0x53b9c8], eax
mov eax, 0x5c2638
call fcn.00426380
cmp dword [0x59a778], 0
je 0x4bf796
mov eax, 0x5b8aa0
mov ebx, 0x36
call fcn.00425f5c
mov eax, dword [0x59a778]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8ad8
mov ebx, 1
call fcn.00425f5c
call fcn.00425618
call fcn.00425ac0
call fcn.004206fb
call fcn.00425618
mov eax, str.SimpleServerOpen_na_Opened_Simple_Server_Listening_Port._Only_Listening_on_IP___Local_Port_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0x64
call fcn.004a7a20
mov dword [ebp - 0x20], 0xffffffe2
jmp 0x4bfb69
mov eax, dword [0x53b994]
mov dword [esi + 0x58], eax
lea eax, [esi + 0x6c]
mov ebx, 0x10
mov ecx, 0x5b8aec
mov edx, 4
call fcn.00420884
cmp dword [0x5c290c], 0
je 0x4bfb50
cmp dword [0x53b9a0], 0
je 0x4bf992
push dword [0x53b9a0]
call sub.WSOCK32.dll_inet_ntoa
call fcn.004260bc
mov eax, 0x5b8af0
mov ebx, 0x3c
call fcn.00425f5c
call fcn.004254a0
mov eax, 0x5b8b2c
mov ebx, 0xe
call fcn.00425f5c
call fcn.00425618
movzx eax, word [esi + 0x54]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b3c
mov ebx, 0xb
call fcn.00425f5c
call fcn.00425618
mov eax, dword [esi + 0x80]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b48
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b994]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b54
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b998]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b60
mov ebx, 7
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d0]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b68
mov ebx, 0xd
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d4]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b78
mov ebx, 0x18
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d8]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8b90
mov ebx, 0x18
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b8]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8ba8
mov ebx, 0xb
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9ac]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8bb4
mov ebx, 0x17
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b0]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8bcc
mov ebx, 0x16
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b4]
call fcn.00425c64
call fcn.00425618
mov eax, str.SimpleServerOpenOpened_Simple_Server_Listening_Port._IP_
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
jmp 0x4bfb50
push dword [0x53b9a0]
call sub.WSOCK32.dll_inet_ntoa
call fcn.004260bc
mov eax, 0x5b8bf4
mov ebx, 0x2a
call fcn.00425f5c
call fcn.004254a0
mov eax, 0x5b8c20
mov ebx, 0xe
call fcn.00425f5c
call fcn.00425618
movzx eax, word [esi + 0x54]
call fcn.00425c64
call fcn.00425618
mov eax, str._UDPmode_
mov ebx, 0xb
call fcn.00425f5c
call fcn.00425618
mov eax, dword [esi + 0x80]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8c3c
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b994]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8c48
mov ebx, 0xa
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b998]
call fcn.00425c64
call fcn.00425618
mov eax, str._SSL_
mov ebx, 7
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d0]
call fcn.00425c64
call fcn.00425618
mov eax, str._SSLMethod_
mov ebx, 0xd
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d4]
call fcn.00425c64
call fcn.00425618
mov eax, str._SSLDontConnectOnOpen___MaxServerConnections___Win_Msg_
mov ebx, 0x18
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9d8]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8c84
mov ebx, 0x18
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b8]
call fcn.00425c64
call fcn.00425618
mov eax, 0x5b8c9c
mov ebx, 0xb
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9ac]
call fcn.00425c64
call fcn.00425618
mov eax, str._Object_NotifyThread_
mov ebx, 0x17
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b0]
call fcn.00425c64
call fcn.00425618
mov eax, str._Object_NotifyEvent_
mov ebx, 0x16
call fcn.00425f5c
call fcn.00425618
mov eax, dword [0x53b9b4]
call fcn.00425c64
call fcn.00425618
mov eax, str.SimpleServerOpenDLL_already_closed_down._This_function_is_ignored
mov ebx, 0x10
call fcn.00425f5c
mov eax, 0
call fcn.004a7a20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x4bfb69
lea eax, [ebp - 0x34]
call fcn.004eba9f
cmp eax, 0
je 0x4beed8
mov eax, dword [ebp - 0x20]
pop esi
pop edx
pop ecx
pop ebx
leave
ret