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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x47426c]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x28]
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [esi + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409056
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push dword [esp + 0x18]
call eax
test eax, eax
jne 0x40904d
mov eax, 2
jmp 0x409056
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
mov dword [esi + 0x4c], eax
lea eax, [esp + 0x8c]
push 0x118
push 0
mov dword [esi + 0x64], 0xf
mov dword [esi + 0x60], 0
mov byte [esi + 0x50], 0
push eax
mov dword [esp + 0x94], 0x11c
call fcn.0043d870
add esp, 0xc
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x8c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esi + 0x14], eax
call fcn.00408f30
push dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
call fcn.00408ea0
mov dword [esi], eax
add esp, 4
movzx eax, word [esp + 0x19c]
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x19e]
mov dword [esi + 0x24], eax
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp word [esp + 0x9c], ax
jne 0x40910f
xor ecx, ecx
jmp 0x40912f
lea ecx, [esp + 0x9c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409120
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x60]
call fcn.004046d0
lea edx, [esp + 0x58]
lea ecx, [esp + 0x70]
call fcn.004081b0
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp edi, ecx
je 0x409194
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x40916f
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00405160
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x409187
mov eax, dword [edi]
jmp 0x409189
mov eax, edi
push ecx
mov ecx, edi
mov byte [eax], 0
call fcn.00404ec0
mov eax, dword [esp + 0x84]
cmp eax, 0x10
jb 0x4091af
inc eax
lea ecx, [esp + 0x70]
push eax
push dword [esp + 0x74]
call fcn.00405160
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
cmp eax, 8
jb 0x4091e2
inc eax
lea ecx, [esp + 0x58]
push eax
push dword [esp + 0x5c]
call fcn.004055e0
mov ecx, esi
call fcn.00409430
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
push eax
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dx, word [esp + 0x20]
movzx eax, dx
test eax, eax
je 0x409231
cmp eax, 6
je 0x409228
cmp eax, 9
jne 0x409238
mov dword [esi + 0x40], 1
jmp 0x409238
mov dword [esi + 0x40], 2
jmp 0x409238
mov dword [esi + 0x40], 0
mov eax, dword [esp + 0x34]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x8c]
cmp eax, 6
je 0x4092f9
cmp eax, 0xa
je 0x4092f9
cmp eax, 5
jne case.0x40933a.2
mov ecx, dword [esp + 0x90]
cmp ecx, 2
jne 0x4092c9
cmp byte [esp + 0x1a2], 1
jne 0x4092a1
cmp dx, 9
jne 0x4092a1
mov dword [esi + 0x1c], 1
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1a0]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne case.0x40933a.2
mov eax, dword [esp + 0x1a0]
shr eax, 9
not eax
and eax, ecx
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
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 + 0x1c]
push ecx
push 0
push 0
push dword [esp + 0x9c]
push dword [esp + 0x9c]
call eax
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 0x2f
ja case.0x40933a.2
movzx eax, byte [eax + 0x409388]
jmp dword [eax*4 + 0x40937c]
mov dword [esi + 0x1c], 2
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop edi
mov dword [esi + 0x1c], 0
pop esi
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret