Function at 0x404c70
Capabilities:
Check mutex on windows
Create thread
Resolve dns
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41ac07
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x426010]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426010]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov esi, ecx
push str.JPLAYStreamer_Driver
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404ce6
push str.BUSY:_Close_player_or_press_STOP_to_open_settings
mov ecx, 0x427360
call fcn.004032c9
jmp 0x404fc7
push ebp
push ebp
push esi
push 0x40470e
push ebp
push ebp
mov dword [0x42888c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x42a3b8]
mov esi, eax
test cl, 1
jne 0x404d1c
or ecx, 1
mov dword [0x42a3b8], ecx
call fcn.00402a82
mov dword [0x42a3a8], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push esi
call ebp
push esi
call ebx
cmp dword [0x42888c], 0
je 0x404d4f
mov ecx, 0x421754
push ecx
push ecx
mov ecx, dword [0x42a3a8]
call fcn.0040209b
mov al, 1
jmp 0x404fc9
push 2
push dword [0x427310]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x427310]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x427310], 0xffffffff
lea ecx, [esp + 0x2c]
mov edi, 0x427340
mov edx, str.Unable_to_connect_to_JPLAY_on
push edi
call fcn.00403f41
and dword [esp + 0x1fc], 0
lea ecx, [esp + 0x48]
mov edx, eax
mov dword [esp], str._nCheck_if_server_is_up_and_JPLAY_is_running
call fcn.00403ff2
pop ecx
mov esi, 0x427360
push eax
mov ecx, esi
call fcn.00402d42
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00403338
or dword [esp + 0x1f8], 0xffffffff
lea ecx, [esp + 0x2c]
push 0
push 1
call fcn.00403338
cmp dword [0x427374], 8
mov ecx, dword [0x42a3a8]
cmovae esi, dword [0x427360]
push str.Cant_connect
push esi
call fcn.0040209b
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x4216f8
call esi
push dword [eax]
call esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x18]
call fcn.00402c41
mov dword [esp + 0x1f8], 1
lea eax, [esp + 0x60]
cmp dword [0x427354], 8
lea ecx, [esp + 0x5c]
push 3
cmovae edi, dword [0x427340]
push edi
mov dword [esp + 0x64], eax
call fcn.004057f2
mov byte [esp + 0x1f8], 2
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 0x10
push dword [esp + 0x5c]
cmovae eax, dword [esp + 0x18]
push eax
call fcn.00409003
pop ecx
pop ecx
test eax, eax
je 0x404fa5
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0xe8]
cmovae eax, dword [esp + 0x14]
push 3
mov dword [esp + 0xe8], ecx
lea ecx, [esp + 0xe8]
push eax
call fcn.00403440
xor edi, edi
mov byte [esp + 0x1f8], 3
push edi
push edi
push dword [esp + 0xec]
push 0x40470e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1388
push esi
call ebp
push esi
call ebx
push 2
push dword [0x427310]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x427310]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x427310], 0xffffffff
cmp dword [0x42888c], edi
je 0x404f86
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0xe4]
mov esi, 0x4273a0
mov ecx, esi
call fcn.004032c9
mov ecx, dword [0x42a3a8]
push str.Reconnected_locally
push str.Using_JPLAY_on_local_PC
call fcn.0040209b
cmp dword [0x42733c], 8
mov eax, 0x427328
push 0x428888
cmovae eax, dword [0x427328]
push 3
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f86
cmp dword [0x4273b4], 8
mov eax, dword [0x4273b0]
cmovae esi, dword [0x4273a0]
add eax, eax
push eax
push esi
push 1
push edi
push str.Host
push dword [0x428888]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x428888]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xe8]
cmp dword [esp + 0xe4], eax
je 0x404fa7
push dword [esp + 0xe4]
call fcn.00408814
pop ecx
jmp 0x404fa7
xor edi, edi
lea eax, [esp + 0x60]
cmp dword [esp + 0x5c], eax
je 0x404fbb
push dword [esp + 0x5c]
call fcn.00408814
pop ecx
push edi
push 1
lea ecx, [esp + 0x1c]
call fcn.0040323e
xor al, al
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.0040809e
add esp, 0x1e8
ret