Function at 0x403170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push edi
push dword [ebp + 8]
lea ebx, [esi + 8]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionMultiMedia_sTasks_s
push ebx
call fcn.00402f80
add esp, 0x10
lea eax, [esi + 4]
test edi, edi
jne 0x4031a1
xor ecx, ecx
jmp 0x4031b8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031a6
sub ecx, edx
lea eax, [esi + 4]
sar ecx, 1
push ecx
push edi
mov ecx, eax
call fcn.00401840
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push dword [ebx]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4031f6
pop edi
mov byte [esi + 0xc], 0
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
lea ebx, [esi + 0x10]
mov dword [ebp + 0xc], 4
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
push 0
push str.Affinity
push dword [ebp - 4]
call edi
test eax, eax
je 0x403233
mov dword [ebx], 0
mov dword [ebx + 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea ebx, [esi + 0x18]
mov dword [ebp + 8], 4
push ebx
lea eax, [ebp + 8]
push eax
push 0
push str.Clock_Rate
push dword [ebp - 4]
call edi
test eax, eax
je 0x403263
mov dword [ebx], 0x2710
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea ebx, [esi + 0x1c]
mov dword [ebp + 8], 4
push ebx
lea eax, [ebp + 8]
push eax
push 0
push str.GPU_Priority
push dword [ebp - 4]
call edi
test eax, eax
je 0x403293
mov dword [ebx], 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea ebx, [esi + 0x20]
mov dword [ebp + 8], 4
push ebx
lea eax, [ebp + 8]
push eax
push 0
push str.Priority
push dword [ebp - 4]
call edi
test eax, eax
je 0x4032c3
mov dword [ebx], 6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea ebx, [esi + 0x2c]
mov dword [ebp + 8], 4
push ebx
lea eax, [ebp + 8]
push eax
push 0
push str.BackgroundPriority
push dword [ebp - 4]
call edi
test eax, eax
je 0x4032f7
mov dword [ebx], 0xffffffff
xor al, al
jmp 0x4032f9
mov al, 1
mov byte [esi + 0xd], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x88]
mov dword [ebp + 0xc], 0x7e
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0
push str.Background_Only
push dword [ebp - 4]
call edi
test eax, eax
je 0x403338
push 0x43bbdc
lea ecx, [esi + 0x30]
call fcn.00403af0
jmp 0x403360
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403341
sub edx, ecx
lea eax, [ebp - 0x88]
sar edx, 1
lea ecx, [esi + 0x30]
push edx
push eax
call fcn.00401840
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x7e
push eax
lea eax, [ebp - 0x88]
mov dword [ebp + 8], 1
push eax
lea eax, [ebp + 8]
push eax
push 0
push str.Scheduling_Category
push dword [ebp - 4]
call edi
test eax, eax
je 0x40339c
push 0x43bc0c
lea ecx, [esi + 0x34]
call fcn.00403af0
jmp 0x4033c4
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033a5
sub edx, ecx
lea eax, [ebp - 0x88]
sar edx, 1
lea ecx, [esi + 0x34]
push edx
push eax
call fcn.00401840
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x7e
push eax
lea eax, [ebp - 0x88]
mov dword [ebp + 8], 1
push eax
lea eax, [ebp + 8]
push eax
push 0
push str.SFIO_Priority
push dword [ebp - 4]
call edi
test eax, eax
je 0x403400
push 0x43bc30
lea ecx, [esi + 0x38]
call fcn.00403af0
jmp 0x40342f
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403410
sub edx, ecx
lea eax, [ebp - 0x88]
sar edx, 1
lea ecx, [esi + 0x38]
push edx
push eax
call fcn.00401840
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov byte [esi + 0xc], 1
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8