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

Disassembly:
push 0x1d4
mov eax, 0x4ac21d
call fcn.00473acf
mov eax, dword [0x4fb368]
xor edi, edi
cmp eax, edi
jne 0x4345cf
mov esi, 0x11c
push esi
lea eax, [ebp - 0x1cc]
push edi
push eax
xor ebx, ebx
mov dword [ebp - 0x1d0], 1
call fcn.00473120
add esp, 0xc
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x434350
lea eax, [ebp - 0x1cc]
push eax
mov dword [ebp - 0x1cc], 0x114
call esi
test eax, eax
jne 0x43436c
inc eax
jmp 0x4345cf
cmp byte [ebp - 0xb2], 1
jne 0x434360
xor ebx, ebx
jmp 0x4343f7
cmp byte [ebp - 0xb2], 3
jmp 0x4343f2
lea eax, [ebp - 0x1d4]
push eax
push 1
push edi
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
push edi
push str.ProductType
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xb0]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x4343cd
xor ebx, ebx
lea eax, [ebp - 0xb0]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x4343e2
xor ebx, ebx
inc ebx
lea eax, [ebp - 0xb0]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x4343f7
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x1bc]
sub eax, edi
je 0x4345ba
dec eax
je 0x434575
dec eax
jne 0x4345c4
mov eax, dword [ebp - 0x1c8]
cmp eax, 4
ja 0x43442d
mov dword [ebp - 0x1d0], 6
jmp 0x4345c4
cmp eax, 5
jne 0x43447d
cmp dword [ebp - 0x1c4], edi
jne 0x434449
mov dword [ebp - 0x1d0], 0xb
jmp 0x4345c4
cmp dword [ebp - 0x1c4], 1
jne 0x434461
mov dword [ebp - 0x1d0], 0xd
jmp 0x4345c4
cmp dword [ebp - 0x1c4], 2
jne 0x4345c4
mov dword [ebp - 0x1d0], 0xf
jmp 0x4345c4
cmp eax, 6
jne 0x434567
mov eax, dword [ebp - 0x1c4]
cmp eax, edi
jne 0x4344a0
xor eax, eax
cmp ebx, edi
setne al
lea eax, [eax + eax + 0x13]
jmp 0x4345b2
cmp eax, 1
jne 0x4344b5
xor eax, eax
cmp ebx, edi
sete al
lea eax, [eax + eax + 0x15]
jmp 0x4345b2
cmp eax, 2
jne 0x434556
xor eax, eax
cmp ebx, edi
setne al
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push str.CurrentVersion
add eax, 0x1b
mov dword [ebp - 0x1d0], eax
call fcn.00418464
mov dword [ebp - 4], edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.00418464
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1e0], esp
push str.HKEY_LOCAL_MACHINE
call fcn.00418464
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1d4]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.004328c0
add esp, 0x10
mov dword [ebp - 4], 3
push 0x4c33b0
mov ecx, eax
call fcn.00417b22
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1d4]
add ecx, 0xfffffff0
call fcn.00409a10
inc bl
je 0x4345c4
jmp 0x43455b
cmp eax, 3
jne 0x434569
mov dword [ebp - 0x1d0], 0x1e
jmp 0x4345c4
jb 0x4345c4
mov dword [ebp - 0x1d0], 0x1f
jmp 0x4345c4
cmp dword [ebp - 0x1c8], 4
jne 0x4345c4
cmp dword [ebp - 0x1c4], edi
jne 0x434592
mov dword [ebp - 0x1d0], 3
jmp 0x4345c4
push 0xa
pop eax
cmp dword [ebp - 0x1c4], eax
jne 0x4345a9
mov dword [ebp - 0x1d0], 8
jmp 0x4345c4
cmp dword [ebp - 0x1c4], 0x5a
jne 0x4345c4
mov dword [ebp - 0x1d0], eax
jmp 0x4345c4
mov dword [ebp - 0x1d0], 2
mov eax, dword [ebp - 0x1d0]
mov dword [0x4fb368], eax
call fcn.00473b52
ret