Function at 0x401870
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x474
mov dl, byte [0x408e20]
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], dl
mov byte [esp + 0x220], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x221]
lea edx, [esp + 0x220]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x488]
or ecx, 0xffffffff
xor eax, eax
push 0x408570
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x224]
push ecx
call fcn.004023d3
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x401b57
push esi
lea edx, [esp + 0x24]
push 0x100
push edx
call fcn.0040235c
add esp, 0xc
test eax, eax
je 0x401b41
mov ebp, dword [esp + 0x10]
mov al, byte [esp + 0x20]
cmp al, 0x5b
je 0x40192d
cmp al, 0x22
jne 0x401b26
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1f], 0xa
jne 0x401954
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x1f], bl
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1f], 0x5d
je 0x4019a8
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1f], 0x22
je 0x4019a8
lea eax, [esp + 0x20]
push str.dword
push eax
call fcn.00402150
add esp, 8
test eax, eax
jne 0x4019ba
push ebx
lea ecx, [esp + 0x24]
push str.line_format_error_
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4019ba
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x1f], bl
cmp byte [esp + 0x20], 0x5b
jne 0x401b26
mov dl, byte [0x408e20]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], dl
mov byte [esp + 0x320], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x321]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5c
push edx
stosb byte es:[edi], al
call fcn.004022a0
mov edx, eax
or ecx, 0xffffffff
lea edi, [esp + 0x29]
xor eax, eax
add esp, 8
lea esi, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
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, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x120]
sub esi, ecx
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 1]
lea edx, [esp + 0x320]
mov byte [esi + ecx], bl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x120]
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]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401ae5
cmp byte [esp + ecx + 0x120], 0x5c
je 0x401ad7
dec ecx
jne 0x401ac8
jmp 0x401ae5
lea ebp, [esp + ecx + 0x121]
mov byte [esp + ecx + 0x120], bl
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
lea eax, [esp + 0x430]
push ebx
push eax
lea ecx, [esp + 0x138]
push ebx
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401b64
mov edx, dword [esp + 0x14]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, dword [esp + 0x10]
push esi
lea eax, [esp + 0x24]
push 0x100
push eax
call fcn.0040235c
add esp, 0xc
test eax, eax
jne 0x40191d
push esi
call fcn.004021fa
lea ecx, [esp + 0x224]
push ecx
call fcn.004021d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x474
ret
push ebx
push 0x408050
push str.open_key_error_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x474
ret