Function at 0x4173a0
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 [0x48b034]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
push ebx
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
mov word [0x565f94], ax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x565f8c], eax
cmp eax, 0xffffffff
jne 0x4173e0
mov esi, str._SocketManager__WSASocket___failed_with_error:__d
jmp 0x41743c
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 [0x565f94]
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 [0x565f8c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x417424
mov esi, str._SocketManager__bind___failed_with_error:__d
jmp 0x41743c
push 5
push dword [0x565f8c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41746d
mov esi, str._SocketManager__listen___failed_with_error:__d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push 1
call fcn.00418b60
add esp, 0xc
mov ecx, 0x565f88
call fcn.00417660
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046bb5b
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 0x4174b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.00418b60
add esp, 0xc
mov ecx, 0x565f88
call fcn.00417660
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x565f90], eax
test eax, eax
jne 0x417507
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x48146c
push 1
call fcn.00418b60
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x565f88
call fcn.00417660
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046bb5b
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 0x565f88
push 0x417e30
push 0
push 0
call ebx
mov dword [0x565f98], eax
test eax, eax
jne 0x417541
mov esi, 0x4814ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push eax
call edi
test eax, eax
jne 0x417560
mov esi, 0x4814e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
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 [0x565fbc], eax
test eax, eax
je 0x4175b3
push 0
push 0
push 0x565f88
push 0x418210
push 0
push 0
call ebx
mov dword [esi*4 + 0x565f9c], eax
test eax, eax
je 0x4175ed
push 2
push eax
call edi
test eax, eax
je 0x4175dd
inc esi
cmp esi, dword [0x565fbc]
jb 0x417582
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x565ff4], eax
test eax, eax
jne 0x4175fd
mov esi, str._SocketManager__CreateSemaphore___failed_with_error:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
mov esi, 0x481558
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
mov esi, 0x481520
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
push 0
push 0
push 0x565f88
push 0x4183c0
push 0
push 0
call ebx
mov dword [0x565ff8], eax
test eax, eax
jne 0x41762a
mov esi, str._SocketManager__CreateThread___failed_with_error:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
push 2
push eax
call edi
test eax, eax
jne 0x417643
mov esi, str._SocketManager__SetThreadPriority___failed_with_error:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417442
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 4