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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x158
mov eax, dword [0x43c230]
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 0x407d97
and dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
push edi
call eax
test eax, eax
jne 0x407d8e
push 2
pop eax
jmp 0x407d97
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.00411c00
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 0x407dff
test ecx, ecx
jle 0x407e2a
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x407e2a
cmp edx, eax
jne 0x407e22
sub ecx, 0
je 0x407e1a
dec ecx
je 0x407e12
dec ecx
jne 0x407dfb
mov dword [esi], edi
jmp 0x407e2a
mov dword [esi], 4
jmp 0x407e2a
mov dword [esi], 3
jmp 0x407e2a
jle 0x407e2a
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 0x407e84
cmp eax, 6
je 0x407e7b
cmp eax, edx
jne 0x407e88
mov dword [esi + 0x1c], 1
jmp 0x407e88
mov dword [esi + 0x1c], 2
jmp 0x407e88
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 0x407f2f
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 0x407f09
cmp eax, 0xc
jae 0x407f26
cmp eax, 1
je 0x407f1d
cmp eax, 4
je 0x407f1d
cmp eax, 6
je 0x407f1d
jbe 0x407eef
cmp eax, 0xa
jbe 0x407f26
and dword [esi + 0x10], 0
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040dfce
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
jb 0x407eef
cmp eax, 0x12
jbe 0x407f26
cmp eax, 0x19
je 0x407f26
cmp eax, 0x30
jne 0x407eef
mov dword [esi + 0x10], 1
jmp 0x407ef3
mov dword [esi + 0x10], 2
jmp 0x407ef3
cmp dword [esp + 0x3c], 5
jne 0x407eef
cmp dword [esp + 0x40], 2
jne 0x407f62
cmp byte [esp + 0x152], 1
jne 0x407f4c
cmp cx, dx
je 0x407f1d
mov ax, word [esp + 0x150]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
jmp 0x407f7d
cmp dword [esp + 0x40], 1
jne 0x407eef
mov ax, word [esp + 0x150]
not ax
movzx eax, ax
shr eax, 9
and eax, 1
mov dword [esi + 0x10], eax
jmp 0x407ef3