Function at 0x498c80
Capabilities:
Check mutex on windows
Create thread
Get hostname
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
mov al, byte [0x4d04a0]
sub esp, 0x1b0
push ebx
xor ebx, ebx
cmp al, bl
je 0x498fbb
lea eax, [esp + 0x24]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x498cbe
push str.NET:_WinSock_not_found_or_could_not_initialize__no_network_support
call fcn.0048edc0
add esp, 4
pop ebx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x24]
cmp ax, 0x101
je 0x498cf3
xor ecx, ecx
mov cl, ah
and eax, 0xff
and ecx, 0xff
push ecx
push eax
push str.NET:_Unsupported_WinSock_version__u._u__no_network_support
call fcn.0048edc0
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
pop ebx
add esp, 0x1b0
ret
push ebp
push esi
push edi
push 0x7f
push 0x4f5f48
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x135]
push 0x4f5f48
lea eax, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x3e]
xor ecx, ecx
mov cl, ah
and eax, 0xff
and ecx, 0xff
push ecx
push eax
push str.NET:_WinSock_v_u._u___s___Status:__s__Host:__s
call fcn.0048edc0
add esp, 0x18
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
push ebx
mov dword [0x4fa058], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x4f5f44
push ebx
push esi
push 0x49a240
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xf
push eax
mov dword [0x4f600c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x4c18f8
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
push 0x48
mov word [esp + 0x14], bx
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x2c], 1
call fcn.0048b010
mov edx, dword [ebp + 0x4c1904]
add esp, 4
mov esi, eax
xor eax, eax
mov ax, word [edi]
push edx
push 2
push eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x498e9d
call sub.WSOCK32.dll_WSAGetLastError
mov ebp, eax
xor edi, edi
mov ecx, 0x4d2a1c
cmp dword [ecx], ebp
je 0x498e2a
add ecx, 0xc
inc edi
cmp ecx, 0x4d2b90
jl 0x498e18
jmp 0x498e5b
lea ecx, [edi + edi*2]
xor edx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4d2a20]
mov dl, byte [ecx + 0x4d2a19]
mov dword [0x4fa068], eax
mov al, byte [ecx + 0x4d2a18]
cmp al, bl
mov dword [0x4fa06c], edx
je 0x498e5b
cmp esi, ebx
je 0x498e5b
mov byte [esi + 0xd], 1
cmp edi, 0x1f
jne 0x498e87
push ebp
push str.Unknown_Error__u
push 0x4f5fcc
call fcn.004b57c2
add esp, 0xc
mov dword [0x4fa06c], 1
mov dword [0x4fa068], 0x4f5fcc
push esi
call fcn.0048b120
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 4
jmp 0x498f97
mov ecx, dword [0x4f6010]
mov dword [ebp + 0x4fa05c], esi
mov edx, dword [esi + 8]
push 3
push 0x402
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
mov ecx, dword [esi + 8]
lea eax, [esp + 0x28]
push 4
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov edx, dword [str.SOCK]
mov byte [esi + 0xc], 2
mov dword [esi], edx
mov dword [esi + 0x3c], 0x226
mov ax, word [edi]
lea ecx, [esp + 0x10]
mov word [esp + 0x10], ax
mov edx, dword [esi + 8]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_bind
mov edx, dword [esi + 8]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call sub.WSOCK32.dll_getsockname
mov ax, word [esp + 0x10]
cmp ax, 2
jne 0x498f3d
mov word [esi + 0x20], 1
mov eax, dword [esp + 0x12]
push eax
call sub.WSOCK32.dll_ntohs
mov word [esi + 0x22], ax
mov ecx, dword [esp + 0x14]
push ecx
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x24], eax
jmp 0x498f6f
cmp ax, 6
jne 0x498f6f
mov word [esi + 0x20], bx
mov edx, dword [esp + 0x1c]
push edx
call sub.WSOCK32.dll_ntohs
mov word [esi + 0x2c], ax
mov ecx, dword [esp + 0x12]
lea eax, [esi + 0x22]
mov dword [esi + 0x22], ecx
mov edx, dword [esp + 0x16]
mov dword [eax + 4], edx
mov cx, word [esp + 0x1a]
mov word [eax + 8], cx
mov eax, dword [0x4d29d4]
mov edx, dword [esi + 8]
cmp eax, ebx
mov ecx, 0x4d29d0
je 0x498f8e
cmp dword [eax + 8], edx
jae 0x498f8e
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x498f80
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov dword [ecx + 4], esi
add edi, 2
add ebp, 4
cmp edi, 0x4c18fc
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edi
jl 0x498d91
pop edi
pop esi
mov byte [0x4fa066], 1
pop ebp
pop ebx
add esp, 0x1b0
ret