Function at 0x408cdd
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x158
mov eax, dword [0x43f4b0]
xor eax, esp
mov dword [esp + 0x154], eax
and dword [esp + 4], 0
push esi
mov esi, ecx
push edi
and dword [esi], 0
mov dword [esi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d4c
and dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
push edi
call eax
test eax, eax
jne 0x408d43
push 2
pop eax
jmp 0x408d4c
xor eax, eax
cmp dword [esp + 0x10], eax
setne al
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x3c], eax
push 0x118
push eax
mov dword [esi + 0x40], 0xf
mov byte [esi + 0x2c], al
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x44], 0x11c
call fcn.00414350
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 6
mov dword [esi + 0xc], eax
pop eax
push 5
pop edi
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
cmp edx, edi
jne 0x408db4
test ecx, ecx
jle 0x408ddf
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x408ddf
cmp edx, eax
jne 0x408dd7
sub ecx, 0
je 0x408dcf
dec ecx
je 0x408dc7
dec ecx
jne 0x408db0
mov dword [esi], edi
jmp 0x408ddf
mov dword [esi], 4
jmp 0x408ddf
mov dword [esi], 3
jmp 0x408ddf
jle 0x408ddf
mov dword [esi], 7
movzx eax, word [esp + 0x14c]
lea edi, [esp + 0x18]
and dword [esp + 0x14], 0
mov dword [esi + 0x14], eax
movzx eax, word [esp + 0x14e]
push 8
mov dword [esi + 0x18], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x14]
movzx eax, cx
push 9
pop edx
test eax, eax
je 0x408e39
cmp eax, 6
je 0x408e30
cmp eax, edx
jne 0x408e3d
mov dword [esi + 0x1c], 1
jmp 0x408e3d
mov dword [esi + 0x1c], 2
jmp 0x408e3d
and dword [esi + 0x1c], 0
cmp dword [esp + 0x3c], 6
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x24], eax
jne 0x408ee4
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call eax
mov eax, dword [esp + 0xc]
cmp eax, 0xf
ja 0x408ebe
cmp eax, 0xc
jae 0x408edb
cmp eax, 1
je 0x408ed2
cmp eax, 4
je 0x408ed2
cmp eax, 6
je 0x408ed2
jbe 0x408ea4
cmp eax, 0xa
jbe 0x408edb
and dword [esi + 0x10], 0
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040eefd
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
jb 0x408ea4
cmp eax, 0x12
jbe 0x408edb
cmp eax, 0x19
je 0x408edb
cmp eax, 0x30
jne 0x408ea4
mov dword [esi + 0x10], 1
jmp 0x408ea8
mov dword [esi + 0x10], 2
jmp 0x408ea8
cmp dword [esp + 0x3c], 5
jne 0x408ea4
cmp dword [esp + 0x40], 2
jne 0x408f17
cmp byte [esp + 0x152], 1
jne 0x408f01
cmp cx, dx
je 0x408ed2
mov ax, word [esp + 0x150]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
jmp 0x408f32
cmp dword [esp + 0x40], 1
jne 0x408ea4
mov ax, word [esp + 0x150]
not ax
movzx eax, ax
shr eax, 9
and eax, 1
mov dword [esi + 0x10], eax
jmp 0x408ea8