Function at 0x401d90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0x14]
push edi
push eax
xor ebx, ebx
push str.SYSTEM
push 0x80000002
mov byte [esp + 0x23], 0
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x401fee
mov edx, dword [esp + 0x18]
mov ecx, 0x40
lea edi, [esp + 0x124]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x124]
push 0x100
push ecx
push ebx
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x401fee
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x17]
test al, al
jne 0x401fee
lea eax, [esp + 0x124]
push str.CurrentControlSet
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401e2a
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x124]
lea edx, [esp + 0x24]
push ecx
push str._sServiceseTouch
push edx
call ebx
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call esi
test eax, eax
jne 0x401ed3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x224]
xor esi, esi
push 0x100
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x401ea6
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0x224]
push edx
push eax
call edi
test eax, eax
je 0x401e8b
inc esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x224]
push 0x100
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x401e71
jmp 0x401eac
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [esp + 0x20], 1
jmp 0x401ed9
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x124]
lea ecx, [esp + 0x24]
push eax
push str._sServiceseTouch
push ecx
call ebx
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x401f6a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x224]
xor esi, esi
push 0x100
push edx
push esi
push eax
call ebp
test eax, eax
jne 0x401f4d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x224]
push ecx
push edx
call edi
test eax, eax
je 0x401f34
inc esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x224]
push 0x100
push eax
push esi
push ecx
call ebp
test eax, eax
je 0x401f20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
push str.ff646f80_8def_11d2_9449_00105a075f6b
lea edx, [esp + 0x128]
push str.ControlClass
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x30]
push str._s_s_s
push eax
call ebx
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x401fc8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x124]
inc eax
push 0x100
push ecx
push eax
push edx
mov dword [esp + 0x2c], eax
call ebp
test eax, eax
je 0x401dff
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret