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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x25c]
mov dword [0x527d20], eax
mov eax, dword [ebp - 0x244]
mov dword [0x5271d8], eax
mov eax, dword [ebp - 0x254]
mov dword [0x520a98], eax
mov eax, dword [ebp - 0x24c]
push 0x11c
mov dword [0x520aa8], eax
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x520a9c], 0
call fcn.004ad5f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45ab2e
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
mov esi, dword [0x527cdc]
test esi, esi
jne 0x45ab5c
push str.RtlGetVersion
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x527cdc], esi
test esi, esi
je 0x45aba6
push 0x11c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004ad5f0
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call dword [0x4e3310]
call esi
test eax, eax
jne 0x45aba6
push edi
mov ecx, 0x47
lea esi, [ebp - 0x23c]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
pop edi
cmp dword [ebp - 0x110], 2
jne 0x45ad4c
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
mov dword [0x527d24], 0xa
cmp ecx, 5
jb 0x45adf3
mov edx, 0xb
cmp ecx, 6
jb 0x45accb
mov dword [0x527d24], 0xd
cmp ecx, 7
jb 0x45ac8d
mov dword [0x527d24], 0x11
cmp ecx, 0xa
jb 0x45acdc
mov edx, dword [ebp - 0x114]
cmp edx, 0x44c0
jb 0x45ac23
mov dword [0x527d24], 0x17
jmp 0x45acdc
cmp edx, 0x4268
jb 0x45ac3a
mov dword [0x527d24], 0x16
jmp 0x45acdc
cmp edx, 0x3e80
jb 0x45ac51
mov dword [0x527d24], 0x15
jmp 0x45acdc
cmp edx, 0x3a98
jb 0x45ac65
mov dword [0x527d24], 0x14
jmp 0x45acdc
cmp edx, 0x36b0
jb 0x45ac79
mov dword [0x527d24], 0x13
jmp 0x45acdc
cmp edx, 0x295a
jb 0x45acdc
mov dword [0x527d24], 0x12
jmp 0x45acdc
cmp eax, 1
jb 0x45acdc
mov dword [0x527d24], 0xe
cmp eax, 2
jb 0x45acdc
mov dword [0x527d24], 0xf
cmp eax, 3
jb 0x45acdc
mov dword [0x527d24], 0x10
cmp eax, 4
jb 0x45acdc
mov dword [0x527d24], 0x11
jmp 0x45acdc
cmp eax, 1
mov esi, 0xc
cmovae edx, esi
mov dword [0x527d24], edx
cmp ecx, 5
jne 0x45ad2e
cmp eax, 1
jne 0x45acfe
cmp word [ebp - 0xc], 2
jae 0x45ad34
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x45ad1b
cmp word [ebp - 0xc], 1
jae 0x45ad34
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
ja 0x45ad34
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
jbe 0x45adf3
mov byte [0x527d02], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x45ade9
mov eax, dword [ebp - 0x118]
mov dword [0x527d24], 1
test eax, eax
jne 0x45ad96
mov eax, 0x457
cmp word [ebp - 0x114], ax
jb 0x45adf3
mov dword [0x527d24], 2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jae 0x45adce
mov eax, 0x8ae
mov dword [0x527d24], 3
cmp word [ebp - 0x114], ax
jb 0x45adf3
mov dword [0x527d24], 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov dword [0x527d24], 5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov dword [0x527d24], 0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret