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

Disassembly:
mov eax, 0x10a4
call fcn.0043da10
push ebx
push ebp
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x9c
call edi
mov esi, eax
test esi, esi
jne 0x42f626
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push ecx
call edi
test eax, eax
jne 0x42f626
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10a4
ret 8
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x42f909
dec eax
je 0x42f868
dec eax
jne 0x42f916
mov ecx, dword [esp + 0x1c]
cmp ecx, 5
jne 0x42f689
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x42f662
mov edx, dword [esp + 0x10b8]
mov dword [edx], 0x3ef
jmp 0x42f69b
cmp eax, 1
jne 0x42f676
mov eax, dword [esp + 0x10b8]
mov dword [eax], 0x3ee
jmp 0x42f69b
test eax, eax
jne 0x42f69b
mov edx, dword [esp + 0x10b8]
mov dword [edx], 0x3ed
jmp 0x42f69b
cmp ecx, 4
ja 0x42f69b
mov eax, dword [esp + 0x10b8]
mov dword [eax], 0x3eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test esi, esi
jne 0x42f785
lea ecx, [esp + 0x10]
mov esi, 0x800
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call edi
test eax, eax
je 0x42f6e6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10a4
ret 8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0xb4]
push edx
push eax
push 0
push 0
push str.ProductType
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f6d7
cmp dword [esp + 0x14], esi
ja 0x42f6d7
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0xb4]
push eax
push str.WINNT
call ebx
mov esi, dword [esp + 0x10bc]
test eax, eax
jne 0x42f738
mov dword [esi], 0x7dd
lea ecx, [esp + 0xb4]
push ecx
push str.LANMANNT
call ebx
test eax, eax
jne 0x42f751
mov dword [esi], 0x7d8
lea edx, [esp + 0xb4]
push edx
push str.SERVERNT
call ebx
test eax, eax
jne 0x42f76a
mov dword [esi], 0x7d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str._d._d
call fcn.0043e481
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp ecx, 4
jne 0x42f831
lea edx, [esp + 0x2c]
push str.Service_Pack_6
push edx
call ebx
test eax, eax
jne 0x42f831
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x42f7f4
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x8b4]
and ecx, 0xffff
push ecx
push str.Service_Pack_6a__Build__d_
push edx
call fcn.0043da3f
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
and eax, 0xffff
lea edx, [esp + 0x8b4]
push eax
push ecx
push str._s__Build__d_
push edx
call fcn.0043da3f
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
and ecx, 0xffff
lea eax, [esp + 0x8b4]
push ecx
push edx
push str._s__Build__d_
push eax
call fcn.0043da3f
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10a4
ret 8
mov ecx, dword [esp + 0x10b8]
mov edx, dword [esp + 0x10bc]
mov eax, dword [esp + 0x1c]
mov dword [ecx], 0x3eb
cmp eax, 4
mov dword [edx], 0x7de
jne 0x42f916
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x42f8c1
mov al, byte [esp + 0x2d]
mov dword [ecx], 0x3e9
cmp al, 0x43
je 0x42f8a9
cmp al, 0x42
jne 0x42f916
pop edi
pop esi
pop ebp
mov dword [edx], 0x7d5
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8
cmp eax, 0xa
jne 0x42f8ec
mov al, byte [esp + 0x2d]
mov dword [ecx], 0x3ea
cmp al, 0x41
jne 0x42f916
pop edi
pop esi
pop ebp
mov dword [edx], 0x7d7
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8
cmp eax, 0x5a
jne 0x42f916
pop edi
pop esi
pop ebp
mov dword [ecx], 0x3ec
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8
mov ecx, dword [esp + 0x10b8]
mov dword [ecx], 0x3e8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10a4
ret 8