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

Disassembly:
mov eax, dword [0x4873a8]
sub esp, 0x1ac
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x467606
lea eax, [esp + 0x2c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x467324
push str.NET:_WinSock_not_found_or_could_not_initialize__no_network_support
call fcn.0045d3a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
mov eax, dword [esp + 0x2c]
cmp ax, 0x101
je 0x46735c
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.0045d3a0
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
push 0x7f
push 0x4a46e8
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x131]
push 0x4a46e8
lea eax, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x3a]
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.0045d3a0
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 [0x4a47fc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x4a46e0
push ebx
push esi
push 0x467f50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xf
push eax
mov dword [0x4a47b0], 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]
xor edi, edi
mov ebp, 0x483040
mov dword [esp + 0x20], edi
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 + 0x28], 0x10
mov dword [esp + 0x2c], 1
call fcn.00459ed0
mov edx, dword [edi + 0x483050]
add esp, 4
mov esi, eax
xor eax, eax
mov ax, word [ebp]
push edx
push 2
push eax
mov dword [edi + 0x4a4800], esi
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x467500
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
xor edx, edx
mov ecx, 0x489894
cmp dword [ecx], edi
je 0x467493
add ecx, 0xc
inc edx
cmp ecx, 0x489a08
jb 0x467481
jmp 0x4674b2
lea esi, [edx + edx*2]
shl esi, 2
xor ecx, ecx
mov cl, byte [esi + 0x489890]
mov eax, dword [esi + 0x489898]
mov dword [0x4a4824], ecx
mov dword [0x4a4820], eax
cmp edx, 0x1f
jne 0x4674de
push edi
push str.Unknown_Error__u
push 0x4a4770
call fcn.0047aba0
add esp, 0xc
mov dword [0x4a4824], 1
mov dword [0x4a4820], 0x4a4770
mov ecx, dword [0x4a4820]
push ecx
push str.netCreateDatagramSocket
push str.NET:__s_failed:__s
call fcn.0045d3a0
mov edi, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4675e6
mov edx, dword [0x4a47b4]
push 3
push 0x402
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push 4
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov byte [esi + 8], 2
mov dword [esi + 0x44], 0x226
mov dx, word [ebp]
lea eax, [esp + 0x10]
mov word [esp + 0x10], dx
mov ecx, dword [esi + 4]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
mov ecx, dword [esi + 4]
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call sub.WSOCK32.dll_getsockname
mov ax, word [esp + 0x10]
cmp ax, 2
jne 0x467590
mov word [esi + 0x24], 1
mov edx, dword [esp + 0x12]
push edx
call sub.WSOCK32.dll_ntohs
mov word [esi + 0x26], ax
mov eax, dword [esp + 0x14]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x28], eax
jmp 0x4675c2
cmp ax, 6
jne 0x4675c2
mov word [esi + 0x24], bx
mov ecx, dword [esp + 0x1c]
push ecx
call sub.WSOCK32.dll_ntohs
mov word [esi + 0x30], ax
mov eax, dword [esp + 0x12]
lea edx, [esi + 0x26]
mov dword [esi + 0x26], eax
mov ecx, dword [esp + 0x16]
mov dword [edx + 4], ecx
mov ax, word [esp + 0x1a]
mov word [edx + 8], ax
mov eax, dword [0x489848]
mov edx, dword [esi + 4]
cmp eax, ebx
mov ecx, 0x489848
je 0x4675e0
cmp dword [eax + 4], edx
jae 0x4675e0
mov ecx, eax
mov eax, dword [ecx]
cmp eax, ebx
jne 0x4675d3
mov edx, dword [ecx]
mov dword [esi], edx
mov dword [ecx], esi
add ebp, 2
add edi, 4
cmp ebp, 0x483044
mov dword [esp + 0x20], edi
jl 0x4673f3
mov dword [0x4a481c], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret