Function at 0x417cc0
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 [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x417ce6
mov ebx, dword [ebp - 0x1c]
mov ax, word [ebp + 8]
push 1
push 0
push 0
push 0
push 1
push 2
mov word [ebx + 0xc], ax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x417d12
mov esi, str._SocketManager__WSASocket___failed_with_error:__d
jmp 0x417d65
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 [ebx + 0xc]
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 [ebx + 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x417d50
mov esi, str._SocketManager__bind___failed_with_error:__d
jmp 0x417d65
push 5
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x417d9b
mov esi, str._SocketManager__listen___failed_with_error:__d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 0xff
push 0x442a08
call fcn.00415470
add esp, 0x10
mov ecx, ebx
call fcn.00417fb0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
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 0x417de8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 0xff
push 0x442a08
call fcn.00415470
add esp, 0x10
mov ecx, ebx
call fcn.00417fb0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 8], eax
test eax, eax
jne 0x417e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 0xff
push 0x442a08
call fcn.00415470
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call fcn.00417fb0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 0
push ebx
push 0x418990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x417e66
mov esi, str._SocketManager__CreateThread___failed_with_error:__d
jmp 0x417e7a
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push eax
call esi
test eax, eax
jne 0x417eb0
mov esi, str._SocketManager__SetThreadPriority___failed_with_error:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xff
push 0x442a08
call fcn.00415470
add esp, 0x10
mov ecx, ebx
call fcn.00417fb0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov ecx, 8
cmp eax, ecx
cmova eax, ecx
xor edi, edi
mov dword [ebx + 0x34], eax
test eax, eax
je 0x417f11
lea esi, [ebx + 0x14]
push 0
push 0
push ebx
push 0x418d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x417e5f
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x417e75
inc edi
add esi, 4
cmp edi, dword [ebx + 0x34]
jb 0x417ed3
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [ebx + 0x6c], eax
test eax, eax
jne 0x417f33
mov esi, str._SocketManager__CreateSemaphore___failed_with_error:__d
jmp 0x417e7a
push 0
push 0
push ebx
push 0x418f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x417e5f
push 2
push eax
call esi
test eax, eax
je 0x417e75
jmp 0x417f6f
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
push str._SocketManager__Server_started_at_port___d_
push 0xffffff
push 0x442a08
call fcn.00415470
mov ecx, dword [ebp - 8]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4