Function at 0x401b4f
Capabilities:
Create thread
Resolve dns
Set registry value

Disassembly:
push 0x89c
mov eax, 0x420b24
call fcn.0041e546
xor ebx, ebx
lea ecx, [ebp - 0x720]
push ebx
push ebx
mov dword [ebp - 0x880], ebx
mov dword [ebp - 0x710], ebx
mov dword [ebp - 0x70c], ebx
call fcn.00403338
mov dword [ebp - 4], ebx
and dword [ebp - 0x8a8], ebx
push ebx
push ebx
mov dword [ebp - 0x8a4], ebx
mov dword [ebp - 0x8a0], ebx
call fcn.00404313
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x894], ebx
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x8a8]
push 8
mov dword [ebp - 0x8a8], 0x3f800000
call fcn.00403804
push ebx
lea eax, [ebp - 0x880]
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpAddrTable]
push eax
push ebx
mov dword [ebp - 0x878], ebx
call edi
cmp eax, 0x7a
jne 0x4021e5
push dword [ebp - 0x880]
call fcn.00412daf
pop ecx
mov esi, eax
lea eax, [ebp - 0x880]
push ebx
push eax
push esi
call edi
mov dword [ebp - 0x874], eax
test eax, eax
jne 0x401c6b
mov edi, ebx
cmp dword [esi], ebx
jbe 0x401c6b
lea ebx, [esi + 4]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.0040318b
lea eax, [ebp - 0x6c0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00402dd0
xor ecx, ecx
mov byte [ebp - 4], 3
inc ecx
push 0
mov dword [eax], ecx
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.004034fb
inc edi
lea ebx, [ebx + 0x18]
cmp edi, dword [esi]
jb 0x401c20
xor ebx, ebx
push esi
call fcn.00412b80
cmp dword [ebp - 0x874], 0
pop ecx
jne 0x4021e5
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x427cb8
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, [ebp - 0x6f0]
call fcn.0040318b
push ecx
push ecx
lea ecx, [ebp - 0x6f0]
mov byte [ebp - 4], 5
call fcn.00403120
push eax
push ecx
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x6f0]
call fcn.004030e9
mov esi, eax
lea eax, [ebp - 0x6f0]
cmp eax, esi
je 0x401cf0
push ebx
push 1
mov ecx, eax
call fcn.004034fb
push esi
lea ecx, [ebp - 0x6f0]
call fcn.004037c0
push ebx
push 1
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 5
call fcn.004034fb
push 3
push ecx
lea ecx, [ebp - 0x6f0]
call fcn.0040368b
mov esi, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + esi*4 - 0x6a8], eax
inc esi
cmp esi, 0x100
jl 0x401d12
mov eax, ebx
lea ebx, [ebp - 0x6a8]
mov dword [ebp - 0x874], ebx
mov dword [ebp - 0x87c], ebx
mov edi, 0x42e8bc
mov dword [ebp - 0x884], eax
mov ebx, eax
lea esi, [edi - 4]
and dword [esi], 0
lea ecx, [edi + 0x18]
push 0x427cbc
call fcn.0040344c
cmp dword [ebp - 0x6dc], 0x10
lea eax, [ebp - 0x6f0]
push ebx
cmovae eax, dword [ebp - 0x6f0]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040140b
add esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00403573
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [edi + 0x34], eax
pop eax
push 0x50
mov word [edi + 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x32], ax
mov eax, dword [ebp - 0x87c]
mov eax, dword [eax]
mov dword [edi + 0x44], eax
xor eax, eax
push eax
push eax
push esi
push 0x401a57
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add dword [ebp - 0x87c], 4
add edi, 0x4c
inc ebx
cmp edi, 0x42fbbc
jl 0x401d4d
push 0x9c4
xor edi, edi
mov dword [ebp - 0x884], ebx
mov ebx, dword [ebp - 0x874]
inc edi
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
lea ecx, [ebp - 0x6d8]
push ebx
push ebx
mov dword [ebp - 0x6c8], ebx
mov dword [ebp - 0x6c4], ebx
call fcn.00403338
push ebx
push ebx
lea ecx, [ebp - 0x708]
mov dword [ebp - 0x6f8], ebx
mov dword [ebp - 0x6f4], ebx
call fcn.00403338
mov byte [ebp - 4], 9
mov esi, 0x42e8bc
jmp 0x401e41
xor edi, edi
inc edi
cmp dword [esi + 0x14], 0x10
jb 0x401e4b
mov eax, dword [esi]
jmp 0x401e4d
mov eax, esi
lea ecx, [ebp - 0x86c]
push 3
mov dword [ebp - 0x870], ecx
lea ecx, [ebp - 0x870]
push eax
call fcn.00403211
lea eax, [ebp - 0x86c]
cmp dword [ebp - 0x870], eax
je 0x401e81
push dword [ebp - 0x870]
call fcn.00412b80
pop ecx
cmp dword [esi - 4], ebx
je 0x4020ae
cmp dword [esi + 0x14], 0x10
jb 0x401e94
mov eax, dword [esi]
jmp 0x401e96
mov eax, esi
lea ecx, [ebp - 0x86c]
push 3
mov dword [ebp - 0x870], ecx
lea ecx, [ebp - 0x870]
push eax
call fcn.00403211
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x708]
push dword [ebp - 0x870]
call fcn.0040344c
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x870], eax
je 0x401ee3
push dword [ebp - 0x870]
call fcn.00412b80
pop ecx
lea eax, [esi + 0x18]
lea ecx, [ebp - 0x6d8]
cmp ecx, eax
je 0x401ef9
push 0xffffffffffffffff
push ebx
push eax
call fcn.00403aec
mov ecx, dword [ebp - 0x6c8]
test ecx, ecx
sete al
test al, al
je 0x401f23
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x708]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00403aec
mov ecx, dword [ebp - 0x6c8]
cmp ecx, 0x13
jbe 0x401f56
push 0x13
push ebx
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00402fba
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00403075
push ebx
push edi
lea ecx, [ebp - 0x6c0]
call fcn.00403338
cmp dword [esi + 0x14], 0x10
jb 0x401f60
mov eax, dword [esi]
jmp 0x401f62
mov eax, esi
push eax
lea ecx, [ebp - 0x6c0]
call fcn.0040318b
lea eax, [ebp - 0x6c0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00402dd0
push 0
push edi
lea ecx, [ebp - 0x6c0]
cmp dword [eax], edi
mov byte [ebp - 4], 9
setne bl
call fcn.004034fb
test bl, bl
je 0x4020ac
cmp dword [ebp - 0x6f4], 8
lea eax, [ebp - 0x708]
cmovae eax, dword [ebp - 0x708]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004030c6
call fcn.004016e0
add esp, 0x18
test eax, eax
je 0x4020ac
lea eax, [ebp - 0x6d8]
mov edx, str.name_
push eax
lea ecx, [ebp - 0x738]
call fcn.00404345
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x6c0]
mov edx, eax
mov dword [esp], 0x427f48
call fcn.004043c9
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 0xe
push ebx
push edi
lea ecx, [ebp - 0x738]
call fcn.00403338
lea eax, [ebp - 0x708]
mov edx, 0x427f2c
push eax
lea ecx, [ebp - 0x768]
call fcn.00404345
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x750]
mov edx, eax
mov dword [esp], 0x427f50
call fcn.004043c9
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x6c0]
mov byte [ebp - 4], 0x10
call fcn.00403bfd
push ebx
push edi
lea ecx, [ebp - 0x750]
call fcn.00403338
push ebx
push edi
lea ecx, [ebp - 0x768]
mov byte [ebp - 4], 0xe
call fcn.00403338
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x720]
call fcn.00403bfd
mov edi, dword [ebp - 0x878]
lea ecx, [ebp - 0x6c0]
push ebx
inc edi
mov byte [ebp - 4], 9
push 1
mov dword [ebp - 0x878], edi
call fcn.00403338
jmp 0x4020b4
xor ebx, ebx
mov edi, dword [ebp - 0x878]
add esi, 0x4c
cmp esi, 0x42fbbc
jl 0x401e3e
push ebx
push 1
lea ecx, [ebp - 0x708]
call fcn.00403338
push ebx
push 1
lea ecx, [ebp - 0x6d8]
mov byte [ebp - 4], 5
call fcn.00403338
mov eax, dword [ebp - 0x87c]
mov ebx, eax
mov dword [ebp - 0x874], eax
mov eax, dword [ebp - 0x884]
cmp eax, 0x100
jl 0x401d3a
xor ebx, ebx
mov esi, ebx
push dword [ebp + esi*4 - 0x6a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x100
jl 0x402106
lea eax, [ebp - 0x888]
push eax
push 3
push ebx
push str.SoftwareJPLAY6
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402170
cmp dword [ebp - 0x70c], 8
lea ecx, [ebp - 0x720]
mov eax, dword [ebp - 0x710]
cmovae ecx, dword [ebp - 0x720]
add eax, eax
push eax
push ecx
push 1
push ebx
push str.AudioPC
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40217e
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4021d7
test edi, edi
jne 0x402198
lea eax, [ebp - 0x2a8]
push str.Could_not_find_JPLAY_on_LAN_n_nCheck_if_JPLAY_is_running_and_if_Firewall_is_not_blocking_port_48168_nIf_AudioPC_is_on_different_subnet_you_MUST_manually_set_AudioPC_setting_in_registry:_nPlease_see_Network_Troubleshooting_in_jplay.eu_manual_for_an_example_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
jmp 0x4021bf
mov ecx, 0x428154
cmp edi, 1
mov eax, 0x427cbc
cmovne eax, ecx
push eax
push edi
lea eax, [ebp - 0x2a8]
push str.JPLAY_found_on__d_address_s_nRestart_JPLAYSettings_and_you_should_be_able_to_select_your_AudioPC_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x50040
push str.JPLAY_Settings
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x6f0]
call fcn.004034fb
lea ecx, [ebp - 0x89c]
call fcn.004031ae
lea ecx, [ebp - 0x8a4]
call fcn.004031d2
push ebx
push 1
lea ecx, [ebp - 0x720]
call fcn.00403338
call fcn.0041e501
ret