Function at 0x40d1a4
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbac
mov eax, 0x48f498
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004696b8
push 0x48c2ab
push ebx
call fcn.0040b39c
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x40d216
mov word [ebp - 0x30], 8
mov edx, 0x48c2ae
lea eax, [ebp - 4]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40d27d
push 0x48c2c8
lea edx, [ebp - 0x454]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x30], 0x14
add esp, 8
lea edx, [ebp - 0x454]
lea eax, [ebp - 8]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
lea ecx, [ebp - 0x48]
push ecx
push ebx
call fcn.0040b594
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40d2d1
mov word [ebp - 0x30], 0x20
mov edx, 0x48c2e2
lea eax, [ebp - 0xc]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
mov edi, 0x20019
test ebx, ebx
je 0x40d409
push 0x48c2fd
push ebx
call fcn.0040b39c
add esp, 8
mov esi, eax
test esi, esi
jne 0x40d2f7
mov edi, 0x2001f
lea eax, [ebp - 0x4c]
push eax
push edi
push 0
push ebx
mov edx, dword [ebp - 0x48]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40d3b0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000002
je 0x40d359
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000003
je 0x40d359
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000000
je 0x40d359
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000001
je 0x40d359
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000005
je 0x40d359
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000006
je 0x40d359
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
push 0x48c2ff
lea eax, [ebp - 0x454]
push eax
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x30], 0x2c
add esp, 0xc
lea edx, [ebp - 0x454]
lea eax, [ebp - 0x10]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000002
je 0x40d3f9
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000003
je 0x40d3f9
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000000
je 0x40d3f9
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000001
je 0x40d3f9
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000005
je 0x40d3f9
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000006
je 0x40d3f9
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, esi
test ebx, ebx
jne 0x40d2de
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x50]
push eax
push 0
push edx
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
mov edx, dword [ebp - 0x54]
push edx
call fcn.00468dd0
pop ecx
mov ebx, eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x40d4f2
push ebx
call fcn.00468de0
pop ecx
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000002
je 0x40d49c
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000003
je 0x40d49c
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000000
je 0x40d49c
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000001
je 0x40d49c
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000005
je 0x40d49c
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000006
je 0x40d49c
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
push 0x48c315
lea edx, [ebp - 0x454]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x30], 0x38
add esp, 8
lea edx, [ebp - 0x454]
lea eax, [ebp - 0x14]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
mov ecx, dword [ebp - 0x54]
push ecx
push ebx
mov eax, dword [ebp - 0x50]
push eax
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x40d5b8
push ebx
call fcn.00468de0
pop ecx
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000002
je 0x40d562
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000003
je 0x40d562
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000000
je 0x40d562
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000001
je 0x40d562
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000005
je 0x40d562
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000006
je 0x40d562
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
push 0x48c323
lea edx, [ebp - 0x454]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x30], 0x44
add esp, 8
lea edx, [ebp - 0x454]
lea eax, [ebp - 0x18]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
push ebx
call fcn.00468de0
pop ecx
mov ecx, dword [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x48]
push eax
call sub.ADVAPI32.DLL_RegDeleteValueA
test eax, eax
je 0x40d670
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000002
je 0x40d61d
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000003
je 0x40d61d
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000000
je 0x40d61d
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000001
je 0x40d61d
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000005
je 0x40d61d
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000006
je 0x40d61d
mov edx, dword [ebp - 0x48]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
push 0x48c331
lea ecx, [ebp - 0x454]
push ecx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x30], 0x50
add esp, 8
lea edx, [ebp - 0x454]
lea eax, [ebp - 0x1c]
call fcn.00474b48
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40d6c4
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000002
je 0x40d6b9
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000003
je 0x40d6b9
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000000
je 0x40d6b9
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x80000001
je 0x40d6b9
mov eax, dword [ebp - 0x48]
cmp eax, 0x80000005
je 0x40d6b9
mov edx, dword [ebp - 0x48]
cmp edx, 0x80000006
je 0x40d6b9
mov ecx, dword [ebp - 0x48]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret