Function at 0x4021a0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x190
mov eax, dword [0x410070]
xor eax, esp
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x1a0]
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x198]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1b8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c0]
mov dword [esp + 0x18], eax
mov eax, ebx
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402230
sub eax, esi
je 0x402610
cmp eax, 0x1e
jg 0x402610
push edi
push 0xf9
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00404100
push 0x63
lea eax, [esp + 0x148]
push 0
push eax
call fcn.00404100
mov eax, dword [0x40d214]
mov ecx, dword [str.SOFTWARENalpeiron_]
mov edx, dword [0x40d210]
mov dword [esp + 0x5c], eax
mov al, byte [ebx]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x40d218]
mov dword [esp + 0x58], edx
mov edx, dword [0x40d21c]
add esp, 0x18
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
cmp al, 0x2a
je 0x40247c
cmp al, 0x23
je 0x402488
cmp al, 0x40
je 0x402484
mov ecx, ebx
jmp 0x4022c0
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4022c0
lea edi, [esp + 0x3c]
sub ebx, ecx
mov esi, ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4022d0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
and ecx, 3
push 0x20019
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x48]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402463
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x40d208
push ecx
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebp
push 0
push 0
push 0x40d204
push eax
call esi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x40d200
push eax
call esi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x40d1fc
push eax
call esi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x40d1f8
push eax
call esi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x40d1f4
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0x40d1f0
push edx
mov dword [esp + 0x28], 4
call esi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push 0
push 0
mov edi, 1
add dword [esp + 0x20], edi
push 0x40d1f0
push edx
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0x40d1ec
push ecx
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x10], edi
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x40d1ec
push ecx
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
push str.Date
push eax
call esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], edi
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.Date
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.004040e4
add esp, 0x190
ret
mov dword [esp + 0x18], 2
cmp al, 0x23
jne 0x402490
mov dword [esp + 0x18], 1
mov ebp, 4
cmp al, 0x40
jne 0x40249d
mov dword [esp + 0x18], ebp
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024a2
sub eax, edx
mov edx, eax
cmp edx, 1
jl 0x4024bb
lea esi, [ebx + 1]
mov ecx, edx
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
dec edx
mov eax, 1
cmp edx, eax
jl 0x4024d0
cmp byte [ebx + eax], 0x2d
je 0x4024d7
inc eax
cmp eax, edx
jle 0x4024c5
mov eax, 1
jmp 0x402463
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
lea edx, [esp + 0x138]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4024e8
mov ecx, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4024f4
lea edi, [esp + 0x3c]
sub ebx, ecx
mov esi, ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402504
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402463
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x40258a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402463
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0
lea edx, [esp + 0x148]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x402454
cmp ecx, 2
jne 0x4025f3
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402463
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x148]
push edx
push eax
mov dword [esp + 0x28], ebp
call esi
mov edx, dword [esp + 0x20]
inc dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x148]
push eax
push ecx
call esi
jmp 0x402463
cmp ecx, ebp
jne 0x402463
lea edx, [esp + 0x3c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402463
mov ecx, dword [esp + 0x198]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 2
call fcn.004040e4
add esp, 0x190
ret