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

Disassembly:
sub esp, 0x220
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, str.____
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x230]
mov esi, edi
mov edx, ecx
mov edi, 0x45e800
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x457040]
mov ecx, edx
and ecx, 3
inc eax
mov dword [0x457040], eax
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x234]
push eax
push 0xf003f
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021ac
push eax
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402194
mov edx, dword [esp + 0x28]
push ebp
lea ebp, [edx - 1]
test ebp, ebp
jl 0x402188
mov al, byte [0x45e904]
mov ecx, 0x3f
mov byte [esp + 0x130], al
xor eax, eax
lea edi, [esp + 0x131]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x130]
push 0x100
stosw word es:[edi], ax
push ecx
push ebp
push edx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov al, byte [0x45e904]
mov ecx, 0x3f
mov byte [esp + 0x30], al
xor eax, eax
lea edi, [esp + 0x31]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45746c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x38]
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402175
push eax
push eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402175
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40216a
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.00401f80
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec ebp
jns 0x402031
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, dword [0x457040]
test eax, eax
jne 0x4021ac
mov eax, dword [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x220
ret