Function at 0x4085f0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x44baec]
push ebx
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
mov word [0x44862c], ax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x448624], eax
cmp eax, 0xffffffff
jne 0x408632
mov esi, str._SocketManager__WSASocket___failed_with_error:__d
jmp 0x40868e
mov eax, 2
push 0
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
movzx eax, word [0x44862c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [0x448624]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408676
mov esi, str._SocketManager__bind___failed_with_error:__d
jmp 0x40868e
push 5
push dword [0x448624]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4086c7
mov esi, str._SocketManager__listen___failed_with_error:__d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
mov ecx, 0x448620
call fcn.004088d0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
mov ecx, 0x448620
call fcn.004088d0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x448628], eax
test eax, eax
jne 0x408771
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x448620
call fcn.004088d0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0x448620
push 0x409280
push 0
push 0
call ebx
mov dword [0x448630], eax
test eax, eax
jne 0x4087a2
mov esi, str._SocketManager__CreateThread___failed_with_error:__d
jmp 0x4087b6
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push eax
call edi
test eax, eax
jne 0x4087ef
mov esi, str._SocketManager__SetThreadPriority___failed_with_error:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
mov ecx, 0x448620
call fcn.004088d0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov ecx, 8
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x448654], eax
test eax, eax
je 0x40884a
push 0
push 0
push 0x448620
push 0x4096c0
push 0
push 0
call ebx
mov dword [esi*4 + 0x448634], eax
test eax, eax
je 0x40879b
push 2
push eax
call edi
test eax, eax
je 0x4087b1
inc esi
cmp esi, dword [0x448654]
jb 0x408811
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x44868c], eax
test eax, eax
jne 0x40886e
mov esi, str._SocketManager__CreateSemaphore___failed_with_error:__d
jmp 0x4087b6
push 0
push 0
push 0x448620
push 0x409950
push 0
push 0
call ebx
mov dword [0x448690], eax
test eax, eax
je 0x40879b
push 2
push eax
call edi
test eax, eax
je 0x4087b1
movzx eax, word [0x44862c]
push eax
push str._SocketManager__Server_started_at_port___d_
push 0x443a80
call fcn.00407410
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4