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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x20]
and dword [eax], 0
mov esi, 0x9c
push esi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], 0x10
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x430837
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0x94
call esi
test eax, eax
je 0x430bd2
mov eax, dword [ebp - 0x200]
sub eax, 0
je 0x430bb7
dec eax
je 0x430ace
dec eax
jne 0x430bd2
push 0x4040c0
push dword [ebp + 0xc]
push edi
call fcn.00447e43
mov eax, dword [ebp - 0x20c]
add esp, 0xc
push 4
pop esi
cmp eax, esi
jae 0x430881
mov dword [ebp - 0x214], 1
jmp 0x43098f
jne 0x430916
push 0x103
lea eax, [ebp - 0x12b]
push 0
push eax
mov dword [ebp - 0x214], esi
mov byte [ebp - 0x12c], 0
call fcn.00427b40
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
push 0xa
stosb byte es:[edi], al
push 0x22
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0042ccaa
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
call fcn.00447e24
push 0x4023f8
push edi
push ebx
call fcn.00447e24
push 0xa
push 0x22
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x208]
mov byte [ebp - 0x28], 0
call fcn.0042ccaa
add esp, 0x44
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
call fcn.00447e24
lea eax, [ebp - 0x12c]
push eax
push edi
push ebx
call fcn.00447e24
add esp, 0x18
jmp 0x43098f
push 5
pop ecx
cmp eax, ecx
jne 0x4309af
cmp dword [ebp - 0x208], 0
jne 0x430937
mov dword [ebp - 0x214], ecx
push 0x4040c8
jmp 0x430983
cmp dword [ebp - 0x208], 1
jne 0x43096b
cmp byte [ebp - 0x176], 3
jne 0x43095a
mov dword [ebp - 0x214], 0xa
push 0x4040d8
jmp 0x430983
mov dword [ebp - 0x214], 9
push 0x4040d0
jmp 0x430983
cmp dword [ebp - 0x208], 2
je 0x430949
mov dword [ebp - 0x214], 8
push 0x4040e4
push dword [ebp + 0xc]
push edi
call fcn.00447e43
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x218], edi
je 0x4309f8
cmp byte [ebp - 0x176], 2
je 0x4309e8
cmp byte [ebp - 0x176], 3
je 0x4309e8
xor eax, eax
jmp 0x4309eb
cmp eax, 6
jne 0x430974
cmp dword [ebp - 0x208], 0
jne 0x430974
cmp byte [ebp - 0x176], 1
jne 0x4309d7
mov dword [ebp - 0x214], 0xb
push 0x404108
jmp 0x430983
mov dword [ebp - 0x214], 0xc
push 0x404114
jmp 0x430983
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
jmp 0x430bd2
lea eax, [ebp - 0x218]
push eax
push 0x4041ac
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x430bd2
push 0x103
mov byte [ebp - 0x12c], al
lea eax, [ebp - 0x12b]
push edi
push eax
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
push 0x403fc4
push dword [ebp - 0x218]
xor esi, esi
inc esi
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430abd
lea eax, [ebp - 0x12c]
push 0x4041a0
push eax
call fcn.00447e08
pop ecx
pop ecx
test eax, eax
je 0x430ab5
lea eax, [ebp - 0x12c]
push 0x404194
push eax
call fcn.00447e08
pop ecx
pop ecx
test eax, eax
je 0x430ab5
lea eax, [ebp - 0x12c]
push 0x404188
push eax
call fcn.00447e08
pop ecx
pop ecx
test eax, eax
jne 0x430abd
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x430bd2
cmp dword [ebp - 0x208], 0
jne 0x430af4
push 0x4040b0
push dword [ebp + 0xc]
push edi
call fcn.00447e43
add esp, 0xc
and dword [ebp - 0x214], 0
jmp 0x430b86
push 0x11
pop ecx
mov esi, 0x404140
lea edi, [ebp - 0x174]
rep movsd dword es:[edi], dword [esi]
push 0x4040b8
push dword [ebp + 0xc]
movsw word es:[edi], word [esi]
push dword [ebp - 0x21c]
movsb byte es:[edi], byte [esi]
call fcn.00447e43
and dword [ebp - 0x218], 0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x174]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x430b59
mov dword [ebp - 0x214], 3
push 0x404128
jmp 0x430b68
mov dword [ebp - 0x214], 2
push 0x404138
push dword [ebp + 0x14]
push ebx
call fcn.00447e43
add esp, 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x204]
shr eax, 0x10
mov ecx, eax
shr ecx, 8
cmp cl, 4
jne 0x430bd2
cmp al, 0x5a
jne 0x430bd2
push 0x4040f8
push dword [ebp + 0xc]
push edi
call fcn.00447e43
mov dword [ebp - 0x214], 6
jmp 0x430bcf
push 0x4040f0
push dword [ebp + 0xc]
push edi
call fcn.00447e43
mov dword [ebp - 0x214], 0xf
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x228]
call fcn.00447e43
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret 0x1c