Function at 0x421a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcd0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421d02
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004cebf0
add esp, 0xc
mov dword [ebp - 0x2c], 0x208
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.BuildLabEx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421cf9
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421b40
sub ecx, edx
lea eax, [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409830
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae edx, edi
test eax, eax
je 0x421ba3
xor esi, esi
mov ecx, edx
test eax, eax
je 0x421b99
cmp word [edx], 0x2e
je 0x421b97
cmp eax, 1
je 0x421b99
add ecx, 2
dec eax
cmp word [ecx], 0x2e
jne 0x421b88
mov esi, ecx
test esi, esi
je 0x421ba3
sub esi, edx
sar esi, 1
jmp 0x421ba6
or esi, 0xffffffff
lea ebx, [esi + 1]
push ebx
push ecx
lea ecx, [ebp - 0x28]
call fcn.004234e0
mov dword [ebp - 0x34], eax
cmp eax, esi
jbe 0x421cc6
cmp esi, 0xffffffff
je 0x421cc6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
cmp eax, ebx
jb 0x421d15
mov ecx, dword [ebp - 0x34]
sub eax, ebx
sub ecx, esi
dec ecx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x4c]
lea eax, [eax + ebx*2]
push eax
call fcn.00409830
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0xa
cmovae eax, dword [ebp - 0x4c]
push 0
push eax
call fcn.004e5095
mov edx, dword [ebp - 0x38]
add esp, 0xc
mov esi, eax
cmp edx, 8
jb 0x421c69
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421c5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1a
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp edx, 8
jb 0x421cb3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421ca9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1a
push edx
push ecx
call fcn.004b4fdc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x421cf9
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x421cef
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d1f
push ecx
push edi
call fcn.004b4fdc
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040d890
call fcn.004e34cc
call fcn.004e34cc
int3