Function at 0x421242
Capabilities:
Check os version
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x440c34
call fcn.00432c38
sub esp, 0x608
push ebx
push esi
push edi
push 0x64c
push 0x3eb
xor ebx, ebx
push dword [0x451730]
mov esi, ecx
mov dword [ebp - 0x24], ebx
call fcn.0042c039
add esp, 0xc
lea eax, [ebp - 0xd]
mov edi, 0x442494
lea ecx, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0x44249c
mov dword [ebp - 0x60], edi
call fcn.00401581
lea eax, [ebp - 0xe]
push 1
push eax
push 0x44b540
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.004014ff
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.0040a236
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00401915
mov eax, 0x44b53c
mov dword [ebp - 0x58], 0x44249c
mov ecx, eax
mov dword [ebp - 0x38], edi
test ecx, ecx
jne 0x4212db
mov eax, 0x450eb4
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040b740
push dword [0x4425a8]
lea eax, [ebp - 0x58]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x54]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040d9c0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00401915
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [esi + 0x4bc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004014ff
push dword [0x4425a8]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040d9c0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.00401915
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x14cc], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], ebx
jne 0x4213f9
push 0xf003f
push 0x44b580
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.004109fd
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x4213f9
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2fb]
mov byte [ebp - 0x2fc], bl
mov dword [ebp - 0x2c], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x80]
stosb byte es:[edi], al
call fcn.004016f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
push ecx
lea ecx, [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4213f9
lea eax, [ebp - 0x2fc]
push eax
call fcn.00433fd1
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x80]
call fcn.004016f0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esi + 4]
call fcn.00422bb2
lea eax, [ebp - 0x1f8]
mov ecx, esi
push eax
push ebx
call fcn.004217c1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1f8]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
push eax
call edi
test eax, eax
je 0x42158c
push 1
push ebx
push 1
lea eax, [ebp - 0x1f8]
push 1
push eax
mov ecx, esi
call fcn.00421be4
test eax, eax
je 0x42156c
lea eax, [ebp - 0xe]
push 1
push eax
push 0x453ac8
lea ecx, [ebp - 0x58]
call fcn.004014ff
lea eax, [ebp - 0x1e]
push 1
push eax
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.004014ff
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 6
call fcn.00410a7e
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.00401915
lea ecx, [ebp - 0x614]
call fcn.00424aba
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004016f0
push eax
lea ecx, [ebp - 0x614]
call fcn.00424fc1
lea eax, [ebp - 0x1d]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00422a18
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 8
call fcn.0040a236
cmp dword [esi + 0x14cc], 1
je 0x421504
lea ecx, [ebp - 0x614]
call fcn.004256c6
test al, al
je 0x421542
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jle 0x421542
lea eax, [ebp - 0x1c]
lea ecx, [esi + 4]
push eax
mov byte [ebp - 0xac], 1
call fcn.00422a42
mov cl, byte [ebp - 0xac]
mov byte [eax], cl
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [eax + 4]
call fcn.0040a236
cmp byte [ebp - 0xd], bl
jne 0x42153e
cmp byte [ebp - 0x30f], bl
mov byte [ebp - 0xd], bl
jne 0x421542
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.00401915
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 5
call fcn.00424eda
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401915
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x1f8]
push eax
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004217c1
lea eax, [ebp - 0x1f8]
push eax
jmp 0x421423
cmp dword [esi + 0x10], ebx
je 0x421734
cmp dword [esi + 0x14cc], 1
jne 0x42167f
lea edi, [esi + 0x2b28]
push edi
call fcn.00432fa0
test eax, eax
pop ecx
je 0x42167f
mov eax, dword [esi + 8]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x421734
lea ecx, [ebp - 0x614]
call fcn.00424aba
mov eax, dword [ebp - 0x18]
push ebx
mov byte [ebp - 4], 9
lea ecx, [eax + 0x14]
call fcn.004016f0
push eax
lea ecx, [ebp - 0x614]
call fcn.00424fc1
lea ecx, [ebp - 0xcc]
call fcn.0040e57c
lea eax, [ebp + 0xb]
push 1
push eax
push edi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.004014ff
lea eax, [ebp - 0xf4]
push ebx
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.0040fd8c
lea ecx, [ebp - 0x58]
call fcn.00401915
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.00401915
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 9
call fcn.0040e5e1
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 4
call fcn.00424eda
lea ecx, [ebp - 0x18]
call fcn.004113eb
mov eax, dword [esi + 8]
cmp dword [ebp - 0x18], eax
jne 0x4215c7
jmp 0x421734
cmp dword [esi + 0x14cc], ebx
jne 0x421788
lea ecx, [ebp - 0xcc]
call fcn.0040e57c
mov eax, dword [ebp + 8]
cmp dword [esi + 0x40b8], 6
mov dword [ebp - 0x94], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x90], al
jb 0x4216ca
cmp byte [ebp - 0xd], bl
je 0x4216ca
call fcn.00430aac
test al, al
mov byte [ebp - 0x8f], 1
je 0x4216d0
mov byte [ebp - 0x8f], bl
push esi
lea ecx, [ebp - 0xcc]
push dword [esi + 0x44e4]
call fcn.0040e61a
push 2
pop ecx
sub eax, ecx
je 0x421722
sub eax, 5
jne 0x421725
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 4
call fcn.0040e5e1
cmp dword [ebp - 0x14], ebx
je 0x42170e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00401915
push 7
pop eax
jmp 0x4217a8
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 4
call fcn.0040e5e1
cmp dword [esi + 0x14cc], ebx
jne 0x421788
cmp dword [ebp - 0x28], ebx
jne 0x421753
lea ecx, [ebp - 0x80]
call fcn.004016f0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp byte [ebp + 0xc], bl
je 0x421788
mov dword [ebp + 0xc], ebx
push 0xf003f
push 0x44b5d8
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.004109fd
test eax, eax
jne 0x421788
push 0x44b5ac
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x14], ebx
je 0x421799
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00401915
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8