Function at 0x421c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605cd5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x421c97
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421ce0
cmp dword [edi + 0x7c], 8
lea esi, [edi + 0x68]
mov dword [ebp - 0x30], eax
mov eax, esi
jb 0x421cbf
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421ce7
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4221a8
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049ce4b
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [esi + 0x14], 8
jb 0x421d0e
mov esi, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
push eax
push 0
push 0
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov esi, dword [ebp - 0x38]
je 0x421d43
push esi
call fcn.0048deb8
add esp, 4
xor al, al
jmp 0x4221a8
mov ecx, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421d60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040c3f0
mov dword [ebp - 4], 0
lea edx, [edi + 8]
cmp dword [edx + 0x14], 8
jb 0x421d8b
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421db0
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.0040c3f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x68]
call fcn.00463360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0040bd90
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e10
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.0040c3f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x50]
call fcn.00463360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040bd90
push esi
call fcn.0048deb8
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, dword [ebp - 0x60]
jl 0x422035
jg 0x421fcc
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x5c]
jl 0x422035
jg 0x421fcc
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x58]
jl 0x422035
jg 0x421fcc
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x54]
jl 0x422035
jg 0x421fcc
mov eax, dword [edi + 4]
cmp dword [eax + 0xe0], 0
je 0x421ef6
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.pre_installed
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0040c3f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
mov ecx, dword [edi + 4]
push eax
add ecx, 0xdc
call fcn.0040b940
push 1
push 0x6610a4
mov ecx, eax
call fcn.0040be20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040bd90
mov eax, dword [edi + 4]
cmp byte [eax + 0x6c], 0
jne 0x421f52
sub esp, 0x18
mov byte [eax + 0x6c], 1
mov ecx, esp
mov dword [ebp - 0x38], esp
xorps xmm0, xmm0
push 0x1d
movups xmmword [ecx], xmm0
push str.Generic_ExitCode_PreInstalled
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040c3f0
mov byte [ebp - 4], 4
mov eax, dword [edi + 4]
push 0
push 5
push dword [eax + 0x1b0]
add eax, 4
push 5
push eax
call fcn.00408610
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.00443970
mov eax, dword [edi + 4]
cmp byte [eax], 0
jne 0x421f9f
cmp dword [eax + 0xb4], 0
je 0x421f9f
add eax, 0xa4
mov dword [ebp - 0x38], eax
call fcn.00408570
push dword [ebp - 0x38]
mov esi, eax
mov eax, dword [esi + 0x4a8]
cmp eax, dword [esi + 0x4ac]
je 0x421f93
mov ecx, eax
call fcn.0040bb80
add dword [esi + 0x4a8], 0x18
jmp 0x421f9f
push eax
lea ecx, [esi + 0x4a4]
call fcn.0040c9d0
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.act_o
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0040c3f0
mov byte [ebp - 4], 5
jmp 0x422166
mov eax, dword [edi + 4]
cmp dword [eax + 0xe0], 0
je 0x42202c
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.pre_installed
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0040c3f0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x50]
mov ecx, dword [edi + 4]
push eax
add ecx, 0xdc
call fcn.0040b940
push 1
push 0x6610ec
mov ecx, eax
call fcn.0040be20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040bd90
mov byte [ebp - 0x31], 0
jmp 0x422196
mov eax, dword [edi + 4]
cmp dword [eax + 0xe0], 0
je 0x422095
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.pre_installed
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0040c3f0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
mov ecx, dword [edi + 4]
push eax
add ecx, 0xdc
call fcn.0040b940
push 1
push 0x6610a4
mov ecx, eax
call fcn.0040be20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040bd90
mov eax, dword [edi + 4]
cmp byte [eax + 0x6c], 0
jne 0x4220f1
sub esp, 0x18
mov byte [eax + 0x6c], 1
mov ecx, esp
mov dword [ebp - 0x38], esp
xorps xmm0, xmm0
push 0x1d
movups xmmword [ecx], xmm0
push str.Generic_ExitCode_PreInstalled
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040c3f0
mov byte [ebp - 4], 8
mov eax, dword [edi + 4]
push 0
push 5
push dword [eax + 0x1b0]
add eax, 4
push 5
push eax
call fcn.00408610
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.00443970
mov eax, dword [edi + 4]
cmp byte [eax], 0
jne 0x42213e
cmp dword [eax + 0xb4], 0
je 0x42213e
add eax, 0xa4
mov dword [ebp - 0x38], eax
call fcn.00408570
push dword [ebp - 0x38]
mov esi, eax
mov eax, dword [esi + 0x4a8]
cmp eax, dword [esi + 0x4ac]
je 0x422132
mov ecx, eax
call fcn.0040bb80
add dword [esi + 0x4a8], 0x18
jmp 0x42213e
push eax
lea ecx, [esi + 0x4a4]
call fcn.0040c9d0
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.act_o
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0040c3f0
mov byte [ebp - 4], 9
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x50]
push eax
add ecx, 0xdc
call fcn.0040b940
push 1
push 0x6611b0
mov ecx, eax
call fcn.0040be20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040bd90
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040bd90
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret