Function at 0x442750
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x170], xmm0
push 0
push eax
movaps xmmword [ebp - 0x160], xmm0
call fcn.004a5f00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x128]
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push eax
call esi
mov dword [ebp - 0x13c], eax
test eax, eax
jne 0x44280c
push 0x118
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004a5f00
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call esi
test eax, eax
jne 0x44280c
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetNtVersionNumbers
push str.ntdll.dll
mov dword [ebp - 0x134], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4428cc
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x124]
push ecx
call eax
movzx eax, word [ebp - 0x11c]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x12c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x12c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4428cc
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 4
push eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x138], 4
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push 0x4ea8cc
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.GetNativeSystemInfo
push 0x4ec3c0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4428ee
lea ecx, [ebp - 0x170]
push ecx
call eax
jmp 0x4428fb
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x442b54
sub eax, 1
je 0x442af7
sub eax, 1
jne case.default.0x442a2b
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x44293e
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp eax, 5
jne 0x442a13
mov eax, dword [ebp - 0x120]
sub eax, 0
je 0x4429fc
sub eax, 1
je 0x4429c0
sub eax, 1
jne case.default.0x442a2b
cmp dword [ebp - 0x13c], eax
je 0x4429a9
cmp byte [ebp - 0xe], 1
jne 0x4429a9
cmp word [ebp - 0x170], 9
jne 0x4429a9
mov ax, word [ebp - 0x14]
mov ecx, 2
cmp cx, ax
je 0x4429ce
mov ecx, 3
cmp cx, ax
jne 0x4429e5
lea eax, [ecx + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 0x65
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ax, word [ebp - 0x14]
mov ecx, 2
cmp cx, ax
jne 0x44298a
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 0x64
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp eax, 6
jne 0x442abe
mov eax, dword [ebp - 0x120]
cmp eax, 3
ja case.default.0x442a2b
jmp dword [eax*4 + 0x442b68]
cmp byte [ebp - 0xe], 1
mov eax, 0x66
mov ecx, 8
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [ebp - 0xe], 1
mov eax, 0x67
mov ecx, 9
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [ebp - 0xe], 1
mov eax, 0x68
mov ecx, 0xa
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [ebp - 0xe], 1
mov eax, 0x69
mov ecx, 0xb
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp eax, 0xa
jne case.default.0x442a2b
cmp dword [ebp - 0x120], 0
jne case.default.0x442a2b
cmp byte [ebp - 0xe], 1
mov eax, 0x6a
mov ecx, 0xc
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x442b3d
cmp eax, 0xa
je 0x442b26
cmp eax, 0x5a
jne case.default.0x442a2b
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret