Function at 0x4021c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43c5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4516ac]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov eax, dword [0x4516ac]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, dword [esp + 0x138]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40223c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push str.ERR:_Open_Key___s__error.
call fcn.004015b0
add esp, 8
jmp 0x40246c
push 0x103
lea ecx, [esp + 0x25]
push 0
push ecx
mov dword [esp + 0x24], 0x104
mov byte [esp + 0x2c], 0
call fcn.00427ba0
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push str.CurrentVersion
push ecx
call edi
test eax, eax
je 0x4022a3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.CurrentVersion
push str.ERR:_Get_Key___s___vaule_error.
call fcn.004015b0
add esp, 8
jmp 0x40246c
lea eax, [esp + 0x20]
push eax
push str.current_system_version__s
call fcn.004015b0
mov al, byte [esp + 0x28]
add esp, 8
cmp al, 0x35
jne 0x4022ce
xor ecx, ecx
cmp byte [esp + 0x22], 0x30
setne cl
add ecx, 1
mov dword [esi], ecx
jmp 0x4022f8
cmp al, 0x36
mov cl, byte [esp + 0x22]
jne 0x4022e3
cmp cl, 0x30
jne 0x4022ec
mov dword [esi], 3
jmp 0x4022f8
jb 0x40244f
cmp cl, 0x30
jbe 0x40244f
mov dword [esi], 5
xor ebx, ebx
cmp dword [esi], 3
jl 0x40242e
lea ecx, [esp + 0x14]
call fcn.00401bc0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0x104
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, 0x104
or edx, eax
mov dword [esp + 0x130], ebx
jge 0x402345
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401920
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push str.BuildLabEx
push edx
call edi
test eax, eax
je 0x4023ba
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402372
xor eax, eax
jmp 0x402384
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402377
sub eax, edx
js 0x4023b0
cmp eax, dword [esi - 8]
jg 0x4023b0
push str.BuildLabEx
mov dword [esi - 0xc], eax
push str.ERR:_Get_Key___s___vaule_error.
mov byte [eax + esi], 0
call fcn.004015b0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00401bf0
jmp 0x40246c
push 0x80070057
call fcn.004010d0
test esi, esi
jne 0x4023c2
xor eax, eax
jmp 0x4023d4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4023c7
sub eax, edx
js 0x4023b0
cmp eax, dword [esi - 8]
jg 0x4023b0
push esi
mov dword [esi - 0xc], eax
push str.current__system_build_lab_is__s
mov byte [eax + esi], 0
call fcn.004015b0
add esp, 8
cmp dword [esi - 0xc], 0
jl 0x40240d
push 0x4407a4
push esi
call fcn.004266f6
add esp, 8
test eax, eax
je 0x40240d
sub eax, esi
cmp eax, 0xffffffff
jne 0x402412
mov ebx, 1
lea ecx, [esp + 0x14]
call fcn.00401bf0
mov esi, dword [esp + 0x1c]
cmp dword [esi], 3
jne 0x40242e
test ebx, ebx
je 0x40242e
mov dword [esi], 4
cmp dword [esi], 5
jne 0x40243d
test ebx, ebx
je 0x40243d
mov dword [esi], 6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40246e
lea edx, [esp + 0x20]
push edx
push str.unknow_system_version__s
call fcn.004015b0
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00427b87
add esp, 0x124
ret