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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], eax
mov eax, 0x464c30
call fcn.004566f8
push 0x9c
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.004562bc
add esp, 0xc
mov dword [ebp - 0x110], 0x9c
lea ecx, [ebp - 0x110]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x406b8c
push str.GetVersionEx
call fcn.0040156c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
jmp 0x406fd3
mov eax, dword [ebp - 0x68]
call fcn.00407048
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 0x71], dl
mov word [ebp - 0x54], 8
lea eax, [ebp - 4]
call fcn.00401a24
inc dword [ebp - 0x48]
mov word [ebp - 0x54], 0x14
cmp dword [ebp - 0x100], 2
jne 0x406e69
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
push str.WNT__d._d
push dword [ebp - 0x6c]
call fcn.004609f0
add esp, 0x10
mov word [ebp - 0x54], 0x20
lea eax, [ebp - 8]
call fcn.00401a24
mov ecx, eax
inc dword [ebp - 0x48]
mov eax, str.OSTerm_prefix:
mov edx, dword [ebp - 0x6c]
call fcn.00460d80
lea edx, [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x68]
call fcn.00409a64
dec dword [ebp - 0x48]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004608a0
cmp byte [ebp - 0x76], 3
jne 0x406cf3
cmp byte [ebp - 0x71], 0
je 0x406cb4
lea ecx, [ebp - 0x134]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
cmp word [ebp - 0x134], 6
je 0x406c50
cmp word [ebp - 0x134], 0
jne 0x406c83
mov word [ebp - 0x54], 0x2c
mov edx, 0x462ac6
lea eax, [ebp - 0xc]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x6c]
call fcn.004608e4
dec dword [ebp - 0x48]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004608a0
jmp 0x406cb4
mov word [ebp - 0x54], 0x38
mov edx, 0x462ac8
lea eax, [ebp - 0x10]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x6c]
call fcn.004608e4
dec dword [ebp - 0x48]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004608a0
mov word [ebp - 0x54], 0x44
lea eax, [ebp - 0x14]
call fcn.00401a24
mov ecx, eax
inc dword [ebp - 0x48]
mov eax, str.Server_OSTerm:
mov edx, dword [ebp - 0x6c]
call fcn.00460d80
lea edx, [ebp - 0x14]
mov edx, dword [edx]
mov eax, dword [ebp - 0x68]
call fcn.00409a64
dec dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004608a0
jmp 0x406d5d
test byte [ebp - 0x77], 2
je 0x406d2c
mov word [ebp - 0x54], 0x50
mov edx, 0x462ada
lea eax, [ebp - 0x18]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x6c]
call fcn.004608e4
dec dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004608a0
jmp 0x406d5d
mov word [ebp - 0x54], 0x5c
mov edx, 0x462adc
lea eax, [ebp - 0x1c]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
call fcn.004608e4
dec dword [ebp - 0x48]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004608a0
cmp dword [ebp - 0x10c], 6
jne 0x406e24
cmp byte [ebp - 0x71], 0
je 0x406dcb
mov word [ebp - 0x54], 0x68
lea eax, [ebp - 0x24]
call fcn.00401a24
push eax
inc dword [ebp - 0x48]
mov edx, 0x462ade
lea eax, [ebp - 0x20]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x6c]
pop ecx
call fcn.004608f8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x6c]
call fcn.004608d0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004608a0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004608a0
jmp 0x406e24
mov word [ebp - 0x54], 0x74
lea eax, [ebp - 0x2c]
call fcn.00401a24
push eax
inc dword [ebp - 0x48]
mov edx, 0x462ae2
lea eax, [ebp - 0x28]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x6c]
pop ecx
call fcn.004608f8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x6c]
call fcn.004608d0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004608a0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004608a0
push 0x57
call fcn.00455550
test eax, eax
je 0x406f30
mov word [ebp - 0x54], 0x80
mov edx, str._MCE
lea eax, [ebp - 0x30]
call fcn.004607d0
inc dword [ebp - 0x48]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
call fcn.004608e4
dec dword [ebp - 0x48]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004608a0
jmp 0x406f30
cmp dword [ebp - 0x100], 1
jne 0x406e93
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
push str.WIN__d._d
push dword [ebp - 0x6c]
call fcn.004609f0
add esp, 0x10
jmp 0x406f30
mov word [ebp - 0x54], 0x8c
lea eax, [ebp - 0x34]
call fcn.00401a24
mov edx, eax
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x100]
call fcn.00406fd8
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
call fcn.00401a24
mov ecx, eax
inc dword [ebp - 0x48]
mov eax, str.Unknown_VER_PLATFORM:
pop edx
call fcn.00460d80
lea edx, [ebp - 0x38]
mov edx, dword [edx]
mov eax, dword [ebp - 0x68]
call fcn.00409a64
dec dword [ebp - 0x48]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004608a0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004608a0
push 0
push 0x462b27
push str.Unknown_system_platform...
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
push eax
dec dword [ebp - 0x48]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004608a0
pop eax
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
jmp 0x406fd3
mov word [ebp - 0x54], 0x98
lea eax, [ebp - 0x3c]
call fcn.00401a24
mov ecx, eax
inc dword [ebp - 0x48]
mov eax, str.OS:
mov edx, dword [ebp - 0x6c]
call fcn.00460d80
lea edx, [ebp - 0x3c]
mov edx, dword [edx]
mov eax, dword [ebp - 0x68]
call fcn.00409a64
dec dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004608a0
mov word [ebp - 0x54], 0xa4
lea eax, [ebp - 0x40]
call fcn.00401a24
push eax
inc dword [ebp - 0x48]
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx eax, ax
mov edx, 4
pop ecx
call fcn.0044b6c0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x70]
call fcn.004608d0
dec dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004608a0
mov al, 1
push eax
dec dword [ebp - 0x48]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004608a0
pop eax
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
jmp 0x406fd3
mov esp, ebp
pop ebp
ret