Function at 0x49aa20
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 [0x4d3e08]
sub esp, 0x1b0
push ebx
xor ebx, ebx
push ebp
push esi
cmp al, bl
push edi
je 0x49ad5e
lea eax, [esp + 0x30]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x49aa64
push str.NET:_WinSock_not_found_or_could_not_initialize__no_network_support
call fcn.0048fa80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x30]
cmp ax, 0x101
je 0x49aa9c
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.0048fa80
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
push 0x7f
push 0x4fb9c8
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x135]
push 0x4fb9c8
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.0048fa80
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 [0x4ffadc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x4fb9c0
push ebx
push esi
push 0x49c020
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xf
push eax
mov dword [0x4fba90], 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, 0x4c5910
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.0048bc10
mov edx, dword [ebp + 0x4c5920]
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 0x49ac43
call sub.WSOCK32.dll_WSAGetLastError
mov ebp, eax
xor edi, edi
mov ecx, 0x4d6394
cmp dword [ecx], ebp
je 0x49abd0
add ecx, 0xc
inc edi
cmp ecx, 0x4d6508
jb 0x49abbe
jmp 0x49ac01
lea ecx, [edi + edi*2]
xor edx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4d6398]
mov dl, byte [ecx + 0x4d6391]
mov dword [0x4ffaf0], eax
mov al, byte [ecx + 0x4d6390]
cmp al, bl
mov dword [0x4ffaf4], edx
je 0x49ac01
cmp esi, ebx
je 0x49ac01
mov byte [esi + 0xd], 1
cmp edi, 0x1f
jne 0x49ac2d
push ebp
push str.Unknown_Error__u
push 0x4fba50
call fcn.004b77e0
add esp, 0xc
mov dword [0x4ffaf4], 1
mov dword [0x4ffaf0], 0x4fba50
push esi
call fcn.0048bd90
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 4
jmp 0x49ad3d
mov ecx, dword [0x4fba94]
mov dword [ebp + 0x4ffae0], 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 0x49ace3
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 0x49ad15
cmp ax, 6
jne 0x49ad15
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 [0x4d634c]
mov edx, dword [esi + 8]
cmp eax, ebx
mov ecx, 0x4d6348
je 0x49ad34
cmp dword [eax + 8], edx
jae 0x49ad34
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x49ad26
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov dword [ecx + 4], esi
add edi, 2
add ebp, 4
cmp edi, 0x4c5914
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edi
jl 0x49ab37
mov byte [0x4ffaec], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret