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

Disassembly:
push 0x3dc
mov eax, 0x452cb5
call fcn.0044730c
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov esi, 0x11c
push esi
mov dword [ebp - 0x3d4], eax
lea eax, [ebp - 0x3c4]
push 0
push eax
mov dword [ebp - 0x3d0], edi
mov dword [ebp - 0x3c8], 0x10
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
mov dword [ebp - 0x3cc], eax
xor eax, eax
cmp dword [ebp - 0x3cc], eax
jne 0x43008e
lea eax, [ebp - 0x3c4]
push eax
mov dword [ebp - 0x3c4], 0x114
call esi
test eax, eax
je 0x43048a
xor eax, eax
mov ecx, dword [ebp - 0x3b4]
sub ecx, eax
je 0x43046f
dec ecx
je 0x430381
dec ecx
jne 0x43048a
push 0x403dd4
push dword [ebp + 0x18]
push ebx
call fcn.0042250d
mov eax, dword [ebp - 0x3c0]
add esp, 0xc
push 4
pop esi
cmp eax, esi
jae 0x4300d7
mov dword [ebp - 0x3c8], 1
jmp 0x43027a
jne 0x430185
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x3c8], esi
call fcn.00427b40
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, 0x404040
push esi
push 0xffffffffffffffff
push ebx
push edi
call fcn.00422e28
mov eax, edi
add esp, 0x20
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x430119
sub eax, ecx
sar eax, 1
mov ecx, ebx
sub ecx, eax
push ecx
push 0x40f948
push ebx
push edi
call fcn.00422d2a
push dword [ebp - 0x3bc]
lea eax, [ebp - 0x218]
push esi
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00422e28
mov eax, edi
add esp, 0x24
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x43015b
sub eax, ecx
sar eax, 1
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
call fcn.00422d2a
add esp, 0x10
jmp 0x43027a
push 5
pop ecx
cmp eax, ecx
jne 0x4301f2
cmp dword [ebp - 0x3bc], 0
jne 0x4301a5
mov dword [ebp - 0x3c8], ecx
push 0x403de4
jmp 0x43026e
cmp dword [ebp - 0x3bc], 1
jne 0x4301cb
cmp byte [ebp - 0x2aa], 3
jne 0x4301e1
mov dword [ebp - 0x3c8], 0xa
push 0x403e04
jmp 0x43026e
cmp dword [ebp - 0x3bc], 2
jne 0x43025f
cmp byte [ebp - 0x2aa], 1
jne 0x4301b7
mov dword [ebp - 0x3c8], 9
push 0x403df4
jmp 0x43026e
cmp eax, 6
jne 0x43025f
cmp dword [ebp - 0x3bc], 0
jne 0x43022b
cmp byte [ebp - 0x2aa], 1
jne 0x43021a
mov dword [ebp - 0x3c8], 0xb
push 0x403e5c
jmp 0x43026e
mov dword [ebp - 0x3c8], 0xc
push 0x403e70
jmp 0x43026e
cmp dword [ebp - 0x3bc], 1
jne 0x43025f
cmp byte [ebp - 0x2aa], 1
jne 0x43024e
mov dword [ebp - 0x3c8], 0xd
push 0x403e98
jmp 0x43026e
mov dword [ebp - 0x3c8], 0xe
push 0x403ea4
jmp 0x43026e
mov dword [ebp - 0x3c8], 8
push 0x403e18
push dword [ebp + 0x18]
push ebx
call fcn.0042250d
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x3cc], edi
je 0x4302aa
cmp byte [ebp - 0x2aa], 2
je 0x43029a
cmp byte [ebp - 0x2aa], 3
je 0x43029a
xor eax, eax
jmp 0x43029d
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x3d4]
mov dword [ecx], eax
jmp 0x43048a
lea eax, [ebp - 0x3cc]
push eax
push 0x403fe0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43048a
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push 0x403fc4
push dword [ebp - 0x3cc]
xor esi, esi
inc esi
mov dword [ebp - 0x3d0], 0x208
mov dword [ebp - 0x3d8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430370
lea eax, [ebp - 0x218]
push 0x403fb0
push eax
call fcn.004231bc
pop ecx
pop ecx
test eax, eax
je 0x430368
lea eax, [ebp - 0x218]
push 0x403f9c
push eax
call fcn.004231bc
pop ecx
pop ecx
test eax, eax
je 0x430368
lea eax, [ebp - 0x218]
push 0x403f88
push eax
call fcn.004231bc
pop ecx
pop ecx
test eax, eax
jne 0x430370
mov eax, dword [ebp - 0x3d4]
mov dword [eax], esi
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43048a
cmp dword [ebp - 0x3bc], eax
jne 0x4303a6
push 0x403db4
push dword [ebp + 0x18]
push ebx
call fcn.0042250d
add esp, 0xc
and dword [ebp - 0x3c8], 0
jmp 0x43043e
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3e4], eax
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 4], eax
push 0x23
pop ecx
mov esi, 0x403ef8
lea edi, [ebp - 0x2a8]
rep movsd dword es:[edi], dword [esi]
push 0x403dc4
push dword [ebp + 0x18]
movsw word es:[edi], word [esi]
push ebx
call fcn.0042250d
add esp, 0xc
push 0x2001f
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3e8]
call fcn.004108fc
test eax, eax
jne 0x43040f
mov dword [ebp - 0x3c8], 3
push 0x403ecc
jmp 0x43041e
mov dword [ebp - 0x3c8], 2
push 0x403eec
push dword [ebp + 0x1c]
push dword [ebp - 0x3d0]
call fcn.0042250d
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e8]
call fcn.00410952
mov eax, dword [ebp - 0x3b8]
shr eax, 0x10
mov ecx, eax
shr ecx, 8
cmp cl, 4
jne 0x43048a
cmp al, 0x5a
jne 0x43048a
push 0x403e40
push dword [ebp + 0x18]
push ebx
call fcn.0042250d
mov dword [ebp - 0x3c8], 6
jmp 0x430487
push 0x403e30
push dword [ebp + 0x18]
push ebx
call fcn.0042250d
mov dword [ebp - 0x3c8], 0xf
add esp, 0xc
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x3dc]
call fcn.0042250d
mov eax, dword [ebp - 0x3c8]
add esp, 0xc
call fcn.0044739e
ret 0x1c