Function at 0x403130
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.00402f40
add esp, 0x10
lea eax, [esi + 4]
test edi, edi
jne 0x403161
xor ecx, ecx
jmp 0x403178
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403166
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 0x4031b6
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 0x4031f3
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 0x403223
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 0x403253
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 0x403283
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 0x4032b7
mov dword [ebx], 0xffffffff
xor al, al
jmp 0x4032b9
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 0x4032f8
push 0x43aadc
lea ecx, [esi + 0x30]
call fcn.00403ab0
jmp 0x403320
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403301
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 0x40335c
push 0x43ab0c
lea ecx, [esi + 0x34]
call fcn.00403ab0
jmp 0x403384
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403365
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 0x4033c0
push 0x43ab30
lea ecx, [esi + 0x38]
call fcn.00403ab0
jmp 0x4033ef
lea edx, [ebp - 0x88]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033d0
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