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

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0x14]
push edi
push eax
push str.SYSTEM
push 0x80000002
mov byte [esp + 0x23], 0
call esi
test eax, eax
jne 0x402200
mov edx, dword [esp + 0x18]
mov ecx, 0x40
lea edi, [esp + 0x120]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
push 0x100
push ecx
push eax
push edx
mov dword [esp + 0x2c], eax
call ebp
test eax, eax
jne 0x402200
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x17]
test al, al
jne 0x402200
lea eax, [esp + 0x120]
push str.CurrentControlSet
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x402044
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x120]
lea edx, [esp + 0x20]
push ecx
push str._sServiceseTouch
push edx
call ebx
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call esi
test eax, eax
jne 0x4020e5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x220]
xor esi, esi
push 0x100
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x4020c0
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0x220]
push edx
push eax
call edi
test eax, eax
je 0x4020a5
inc esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push 0x100
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x40208b
jmp 0x4020c6
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 + 0x20]
push ecx
push edx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
jmp 0x4020eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x20]
push eax
push str._sServicesUsbTouch
push ecx
call ebx
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x40217c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x220]
xor esi, esi
push 0x100
push edx
push esi
push eax
call ebp
test eax, eax
jne 0x40215f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
push edx
call edi
test eax, eax
je 0x402146
inc esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x220]
push 0x100
push eax
push esi
push ecx
call ebp
test eax, eax
je 0x402132
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20]
push str.ff646f80_8def_11d2_9449_00105a075f6b
lea edx, [esp + 0x124]
push str.ControlClass
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x2c]
push str._s_s_s
push eax
call ebx
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x4021da
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x120]
inc eax
push 0x100
push ecx
push eax
push edx
mov dword [esp + 0x2c], eax
call ebp
test eax, eax
je 0x402019
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret