Function at 0x40195e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
lea eax, [ebp - 8]
push esi
push edi
xor esi, esi
push eax
push str.SystemCurrentControlSetControlASDProb
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401a6b
mov edi, 1
push 0x32
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401a62
mov ebx, edi
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x64]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401a47
lea eax, [ebp - 0x10]
lea ecx, [ebp - 1]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x268]
push 0
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x202
push ecx
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401a3e
cmp dword [ebp - 0x18], 3
jne 0x401a3e
cmp dword [ebp - 0x10], ebx
jne 0x401a3e
cmp byte [ebp - 1], 2
jne 0x401a07
inc esi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 1]
push edx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push 0
lea eax, [ebp - 0x268]
push edx
mov dword [ebp - 0x10], ebx
push eax
inc dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0x202
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4019f5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
push 0x32
inc edi
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4019a7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401cd3
mov dword [0x40616c], esi
imul esi, esi, 0x138
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401cd3
xor edi, edi
lea eax, [ebp - 8]
push eax
push str.SystemCurrentControlSetControlASDProb
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bda
push 0x32
lea eax, [ebp - 0x64]
mov dword [ebp - 0x18], 1
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401bd1
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x64]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bb3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 1]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x202
mov dword [ebp - 0x28], 1
push 0
push eax
push ecx
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401baa
mov eax, edi
imul eax, eax, 0x138
lea ebx, [eax + esi]
cmp dword [ebp - 0x1c], 3
jne 0x401baa
cmp dword [ebp - 0x10], 1
jne 0x401baa
cmp byte [ebp - 1], 2
jne 0x401b6f
lea eax, [ebp - 0x64]
inc edi
push eax
push ebx
add ebx, 0x138
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x268]
lea eax, [ebx - 0x106]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 1]
push edx
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
push 0
lea eax, [ebp - 0x268]
push edx
inc dword [ebp - 0x28]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x202
push eax
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x401b37
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push 0x32
lea ecx, [ebp - 0x64]
inc dword [ebp - 0x18]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401ad6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], edi
push 0x4010ac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c26
mov eax, 4
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push edi
push 0x4010a4
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp - 0x20], 1
jne 0x401ca4
xor edi, edi
cmp dword [0x40616c], edi
je 0x401cbd
mov ebx, esi
lea eax, [ebp - 8]
push eax
push str.SystemCurrentControlSetControlASDProb
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c93
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c8a
push 1
lea eax, [ebp - 2]
push eax
lea ecx, [ebx + 0x32]
mov byte [ebp - 2], 1
push 3
push 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0x138
inc edi
cmp dword [0x40616c], edi
ja 0x401c3c
jmp 0x401cbd
push esi
mov eax, dword [0x407488]
push 0x40178f
push 0
push 0xbbc
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push esi
call fcn.00401339
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret