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

Disassembly:
push 0x3d4
mov eax, 0x469c01
call fcn.0045f3fe
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov esi, 0x11c
push esi
mov dword [ebp - 0x3dc], eax
lea eax, [ebp - 0x3c4]
push 0
push eax
mov dword [ebp - 0x3cc], edi
mov dword [ebp - 0x3c8], 0xe
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExW]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x3d0], eax
cmp eax, ecx
jne 0x45c3ad
lea eax, [ebp - 0x3c4]
push eax
mov dword [ebp - 0x3c4], 0x114
call esi
test eax, eax
je 0x45c739
xor ecx, ecx
mov eax, dword [ebp - 0x3b4]
sub eax, ecx
je 0x45c71e
dec eax
je 0x45c636
dec eax
jne 0x45c739
push 0x4074d8
push dword [ebp + 0x18]
push ebx
call fcn.00443a60
mov eax, dword [ebp - 0x3c0]
add esp, 0xc
push 4
pop esi
cmp eax, esi
jae 0x45c3f6
mov dword [ebp - 0x3c8], 1
jmp 0x45c4f6
jne 0x45c47d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x3c8], esi
call fcn.004433d0
push esi
mov esi, 0x40b734
push esi
push 0xffffffffffffffff
push dword [ebp + 0x1c]
push edi
call fcn.00443a60
mov eax, edi
add esp, 0x20
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x45c42f
sub eax, ecx
mov ecx, dword [ebp + 0x1c]
sar eax, 1
push 0x40dbf8
sub ecx, eax
push ecx
push edi
call fcn.00443a60
push dword [ebp - 0x3bc]
lea eax, [ebp - 0x218]
push esi
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00443a60
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x1c]
push edi
call fcn.00443a60
add esp, 0x2c
jmp 0x45c4f6
push 5
pop ecx
cmp eax, ecx
jne 0x45c516
cmp dword [ebp - 0x3bc], 0
jne 0x45c49e
mov dword [ebp - 0x3c8], ecx
push 0x4074e8
jmp 0x45c4ea
cmp dword [ebp - 0x3bc], 1
jne 0x45c4d2
cmp byte [ebp - 0x2aa], 3
jne 0x45c4c1
mov dword [ebp - 0x3c8], 0xa
push 0x407508
jmp 0x45c4ea
mov dword [ebp - 0x3c8], 9
push 0x4074f8
jmp 0x45c4ea
cmp dword [ebp - 0x3bc], 2
je 0x45c4b0
mov dword [ebp - 0x3c8], 8
push 0x407524
push dword [ebp + 0x18]
push ebx
call fcn.00443a60
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x3d0], edi
je 0x45c55f
cmp byte [ebp - 0x2aa], 2
je 0x45c54f
cmp byte [ebp - 0x2aa], 3
je 0x45c54f
xor eax, eax
jmp 0x45c552
cmp eax, 6
jne 0x45c4db
cmp dword [ebp - 0x3bc], 0
jne 0x45c4db
cmp byte [ebp - 0x2aa], 1
jne 0x45c53e
mov dword [ebp - 0x3c8], 0xb
push 0x407568
jmp 0x45c4ea
mov dword [ebp - 0x3c8], 0xc
push 0x40757c
jmp 0x45c4ea
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x3dc]
mov dword [ecx], eax
jmp 0x45c739
lea eax, [ebp - 0x3cc]
push eax
push 0x4076b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x47e084]
test eax, eax
jne 0x45c739
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x3d4]
push eax
push edi
push 0x40769c
push dword [ebp - 0x3cc]
xor esi, esi
inc esi
mov dword [ebp - 0x3d0], 0x208
mov dword [ebp - 0x3d4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45c625
lea eax, [ebp - 0x218]
push 0x407688
push eax
call fcn.00443a60
pop ecx
pop ecx
test eax, eax
je 0x45c61d
lea eax, [ebp - 0x218]
push 0x407674
push eax
call fcn.00443a60
pop ecx
pop ecx
test eax, eax
je 0x45c61d
lea eax, [ebp - 0x218]
push 0x407660
push eax
call fcn.00443a60
pop ecx
pop ecx
test eax, eax
jne 0x45c625
mov eax, dword [ebp - 0x3dc]
mov dword [eax], esi
push dword [ebp - 0x3cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45c739
cmp dword [ebp - 0x3bc], ecx
jne 0x45c65b
push 0x4074b8
push dword [ebp + 0x18]
push ebx
call fcn.00443a60
add esp, 0xc
and dword [ebp - 0x3c8], 0
jmp 0x45c6ed
mov dword [ebp - 0x3d8], ecx
mov dword [ebp - 0x3d4], ecx
mov dword [ebp - 4], ecx
push 0x23
pop ecx
mov esi, 0x4075d0
lea edi, [ebp - 0x2a8]
rep movsd dword es:[edi], dword [esi]
push 0x4074c8
push dword [ebp + 0x18]
movsw word es:[edi], word [esi]
push ebx
call fcn.00443a60
add esp, 0xc
push 0x2001f
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3d8]
call fcn.00443a60
test eax, eax
jne 0x45c6be
mov dword [ebp - 0x3c8], 3
push 0x4075a4
jmp 0x45c6cd
mov dword [ebp - 0x3c8], 2
push 0x4075c4
push dword [ebp + 0x1c]
push dword [ebp - 0x3cc]
call fcn.00443a60
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.004366dc
mov eax, dword [ebp - 0x3b8]
shr eax, 0x10
mov ecx, eax
shr ecx, 8
cmp cl, 4
jne 0x45c739
cmp al, 0x5a
jne 0x45c739
push 0x40754c
push dword [ebp + 0x18]
push ebx
call fcn.00443a60
mov dword [ebp - 0x3c8], 6
jmp 0x45c736
push 0x40753c
push dword [ebp + 0x18]
push ebx
call fcn.00443a60
mov dword [ebp - 0x3c8], 0xd
add esp, 0xc
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x3e0]
call fcn.00443a60
mov eax, dword [ebp - 0x3c8]
add esp, 0xc
call fcn.0045f490
ret 0x1c