Function at 0x405050
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42667c]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0x400
push ebx
mov ebx, ecx
mov ecx, 2
mov dword [ebp - 0x14], ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
test eax, eax
je 0x4050ab
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.transport
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x42667c]
dec ecx
cmp ecx, 3
ja case.default.0x4050b5
jmp dword [ecx*4 + 0x40547c]
lea ecx, [ebp - 0xc]
call fcn.00401c70
movq xmm0, qword [str._unknown_]
mov al, byte [0x422b24]
push 0x110
movq qword [ebp - 0x116], xmm0
mov byte [ebp - 0x10e], al
call fcn.0041c7b3
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x116]
mov ecx, dword [ebp - 0xc]
push 8
mov dword [eax], vtable.BtDeviceStream.0
lea edi, [eax + 0xe]
mov dword [eax + 8], ecx
mov cx, word [ebp - 8]
mov word [eax + 0xc], cx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 4], 0xffffffff
mov dword [ebx], eax
call fcn.0041c7b3
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
add esp, 8
movq qword [eax], xmm0
mov ecx, dword [ebx]
mov dword [eax], vtable.BluetoothMediaStream.0
mov dword [eax + 4], ecx
jmp 0x4053e3
push 0x10
call fcn.0041c7b3
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
movups xmmword [edi], xmm0
mov eax, dword [0x42667c]
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x40518b
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.controlPort
push eax
call esi
mov eax, dword [ebp - 0x14]
jmp 0x40518d
xor eax, eax
mov dword [edi], vtable.UsbControlStream.0
mov dword [edi + 8], eax
mov dword [edi + 4], 0
push 8
mov dword [ebx], edi
call fcn.0041c7b3
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movq qword [eax], xmm0
mov ecx, dword [ebx]
mov dword [eax], vtable.UsbMediaStream.0
mov dword [eax + 4], ecx
jmp 0x4053e0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4051f4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.mediaPort
push eax
call esi
mov eax, dword [ebp - 0x14]
jmp 0x4051f6
xor eax, eax
mov dword [ebx + 8], eax
mov ecx, dword [0x42667c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test ecx, ecx
je 0x40523c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.mediaPort
push ecx
call esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [0x42667c]
jmp 0x40523e
xor edx, edx
cmp eax, edx
je 0x40525f
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40525f
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.mediaPort
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
call fcn.0041c7b3
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
movups xmmword [edi], xmm0
mov eax, dword [0x42667c]
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4052b5
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.controlPort
push eax
call esi
mov esi, dword [ebp - 0x14]
call fcn.00401b50
jmp 0x4053b5
xor esi, esi
call fcn.00401b50
jmp 0x4053b5
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4052f5
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.mediaPort
push eax
call esi
mov eax, dword [ebp - 0x14]
jmp 0x4052f7
xor eax, eax
mov dword [ebx + 8], eax
mov ecx, dword [0x42667c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test ecx, ecx
je 0x40533d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.mediaPort
push ecx
call esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [0x42667c]
jmp 0x40533f
xor edx, edx
cmp eax, edx
je 0x405360
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x405360
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.mediaPort
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
call fcn.0041c7b3
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
movups xmmword [edi], xmm0
mov eax, dword [0x42667c]
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4053ae
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.controlPort
push eax
call esi
mov esi, dword [ebp - 0x14]
jmp 0x4053b0
xor esi, esi
call fcn.00401be0
mov dword [edi], vtable.WinSockStream.0
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov dword [edi + 4], 0xffffffff
push 0xc
mov dword [ebx], edi
call fcn.0041c7b3
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov dword [eax], vtable.WifiMediaStream.0
add esp, 4
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x405429
xor eax, eax
cmp ecx, 0xffffffec
je 0x405413
cmp ecx, 0xfffffff6
jne 0x405468
pop edi
pop esi
lea eax, [ecx - 0x14]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffe0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x405452
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
mov eax, 0xffffffe1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret