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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b89e
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x274], edi
mov dword [edi], 0
mov dword [edi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x58f3a0
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40abfc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x270]
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
jne 0x40abf4
mov eax, 2
jmp 0x40abfc
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [edi + 0x28], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0xf
mov byte [edi + 0x2c], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x158], 0x11c
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp eax, 5
jne 0x40ac7a
test ecx, ecx
jle 0x40acf3
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [edi], eax
jmp 0x40acf3
cmp eax, 6
jne 0x40acaa
sub ecx, 0
je 0x40aca2
sub ecx, 1
je 0x40ac9a
sub ecx, 1
je 0x40ac92
mov dword [edi], eax
jmp 0x40acf3
mov dword [edi], 5
jmp 0x40acf3
mov dword [edi], 4
jmp 0x40acf3
mov dword [edi], 3
jmp 0x40acf3
cmp eax, 0xa
jne 0x40ace1
cmp edx, 0x295a
jge 0x40acbf
mov dword [edi], 7
jmp 0x40acf3
cmp edx, 0x3839
jge 0x40accf
mov dword [edi], 8
jmp 0x40acf3
xor eax, eax
cmp edx, 0x3ad7
setge al
add eax, 9
mov dword [edi], eax
jmp 0x40acf3
cmp eax, 6
jle 0x40acf3
mov dword [ebp - 4], 0
mov dword [edi], 0xb
movzx eax, word [ebp - 0x44]
mov dword [edi + 0x14], eax
movzx eax, word [ebp - 0x42]
mov dword [edi + 0x18], eax
mov eax, dword [edi]
cmp eax, 5
je 0x40ad11
cmp eax, 6
jne 0x40adb4
push str.RtlGetVersion
push 0x58f1a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40adb4
push 0x110
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x26c], 0x114
lea eax, [ebp - 0x26c]
mov ecx, esi
push eax
call dword [0x5817c0]
call esi
test eax, eax
js 0x40adb4
mov eax, dword [ebp - 0x268]
cmp eax, 6
jne 0x40ad7f
cmp dword [ebp - 0x264], 3
jb 0x40adb4
mov dword [edi], eax
jmp 0x40adb4
cmp eax, 0xa
jne 0x40adb4
mov eax, dword [ebp - 0x260]
cmp eax, 0x295a
jae 0x40ad99
mov dword [edi], 7
jmp 0x40adb4
cmp eax, 0x3839
jae 0x40ada8
mov dword [edi], 8
jmp 0x40adb4
cmp eax, 0x3ad7
sbb eax, eax
add eax, 0xa
mov dword [edi], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x3c]
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x3c]
movzx eax, cx
test eax, eax
je 0x40adf7
cmp eax, 6
je 0x40adee
cmp eax, 9
jne 0x40adfe
mov dword [edi + 0x1c], 1
jmp 0x40adfe
mov dword [edi + 0x1c], 2
jmp 0x40adfe
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x154]
cmp eax, 6
je 0x40ae5c
cmp eax, 0xa
je 0x40ae5c
cmp eax, 5
jne case.0x40aea3.2
mov eax, dword [ebp - 0x150]
cmp eax, 2
jne 0x40ae4a
cmp byte [ebp - 0x3e], 1
jne 0x40ae3a
cmp cx, 9
je case.0x40aea3.1
test dword [ebp - 0x40], 0x8000
jne case.0x40aea3.2
mov eax, 2
jmp 0x40aeba
cmp eax, 1
jne case.0x40aea3.2
mov eax, dword [ebp - 0x40]
not eax
shr eax, 9
and eax, 1
jmp 0x40aeba
push str.GetProductInfo
push 0x58f3a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x150]
mov ecx, esi
push dword [ebp - 0x154]
call dword [0x5817c0]
call esi
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0x2f
ja case.0x40aea3.2
movzx eax, byte [eax + 0x40aee8]
jmp dword [eax*4 + 0x40aedc]
mov eax, 2
jmp 0x40aeba
mov eax, 1
jmp 0x40aeba
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret