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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x58]
mov dword [ebx], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00448680
xor esi, esi
cmp eax, esi
pop ecx
jg 0x40eaac
mov byte [ebx + 0xc], 0
cmp dword [ebp - 0x4c], 2
mov byte [ebx + 0x10c], 0
mov byte [ebx + 0x10d], 0
mov byte [ebx + 0x120], 0
mov byte [ebx + 0x10e], 0
mov byte [ebx + 0x10f], 0
mov byte [ebx + 0x114], 0
mov byte [ebx + 0x115], 0
mov byte [ebx + 0x110], 0
mov byte [ebx + 0x111], 0
mov byte [ebx + 0x116], 0
mov byte [ebx + 0x117], 0
mov byte [ebx + 0x118], 0
mov byte [ebx + 0x119], 0
mov byte [ebx + 0x112], 0
mov byte [ebx + 0x113], 0
mov byte [ebx + 0x11c], 0
mov byte [ebx + 0x11d], 0
mov byte [ebx + 0x11a], 0
mov byte [ebx + 0x11b], 0
mov byte [ebx + 0x11e], 0
mov byte [ebx + 0x11f], 0
jne 0x40eb7e
mov eax, dword [ebx]
sub eax, 4
mov byte [ebx + 0x10c], 1
je 0x40eb6e
dec eax
je 0x40eb0a
dec eax
jne 0x40ebd2
mov eax, dword [ebx + 4]
cmp eax, esi
mov byte [ebx + 0x10f], 1
jne 0x40ead8
mov byte [ebx + 0x115], 1
mov byte [ebx + 0x111], 1
mov byte [ebx + 0x119], 1
mov byte [ebx + 0x118], 1
jmp 0x40ebd2
lea ecx, [ebp + eax - 0x48]
cmp byte [ecx], 0x20
jne 0x40eab1
mov byte [ecx], 0
dec eax
cmp eax, esi
jg 0x40eaa0
xor ecx, ecx
cmp eax, esi
jle 0x40eac3
cmp byte [ebp + ecx - 0x48], 0x20
jne 0x40eac3
inc ecx
cmp ecx, eax
jl 0x40eab7
lea eax, [ebp + ecx - 0x48]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00448210
pop ecx
pop ecx
jmp 0x40e9b4
cmp eax, 1
jne 0x40ebd2
mov byte [ebx + 0x111], al
mov byte [ebx + 0x117], al
mov byte [ebx + 0x115], al
mov byte [ebx + 0x119], al
mov byte [ebx + 0x113], al
mov byte [ebx + 0x112], al
jmp 0x40ebd2
mov eax, dword [ebx + 4]
cmp eax, esi
mov byte [ebx + 0x10f], 1
jne 0x40eb2b
mov byte [ebx + 0x115], 1
mov byte [ebx + 0x114], 1
jmp 0x40ebd2
cmp eax, 1
jne 0x40eb47
mov byte [ebx + 0x115], al
mov byte [ebx + 0x111], al
mov byte [ebx + 0x110], al
jmp 0x40ebd2
cmp eax, 2
jb 0x40ebd2
mov byte [ebx + 0x115], 1
mov byte [ebx + 0x111], 1
mov byte [ebx + 0x117], 1
mov byte [ebx + 0x116], 1
jmp 0x40ebd2
mov byte [ebx + 0x10f], 1
mov byte [ebx + 0x10e], 1
jmp 0x40ebd2
movzx eax, word [ebp - 0x50]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
cmp eax, esi
mov byte [ebx + 0x10d], 1
mov byte [ebx + 0x11d], 1
je 0x40ebcb
cmp eax, 0xa
je 0x40ebbb
cmp eax, 0x5a
jne 0x40ebd2
mov byte [ebx + 0x11b], 1
mov byte [ebx + 0x11f], 1
mov byte [ebx + 0x11e], 1
jmp 0x40ebd2
mov byte [ebx + 0x11b], 1
mov byte [ebx + 0x11a], 1
jmp 0x40ebd2
mov byte [ebx + 0x11c], 1
lea eax, [ebp + 0x74]
push eax
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x74], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
lea eax, [ebp + 0x5c]
call fcn.0040eca8
call eax
cmp dword [ebp + 0x74], 1
jne 0x40ebfd
mov byte [ebx + 0x120], 1
push 8
xor eax, eax
cmp byte [ebx + 0x120], al
pop ecx
lea edi, [ebp + 0x3c]
mov dword [ebp + 0x38], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40ec5a
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x70], esi
lea esi, [ebp + 0x68]
call fcn.0040ecd4
cmp dword [ebp + 0x70], 0
je 0x40ec39
lea eax, [ebp + 0x38]
push eax
mov eax, esi
call fcn.0040ecbe
call eax
cmp dword [ebp + 0x68], 0
je 0x40ec44
push dword [ebp + 0x68]
call edi
xor esi, esi
mov eax, dword [ebp + 0x38]
cmp ax, si
jne 0x40ec66
mov dword [ebx + 0x124], 1
jmp 0x40ec95
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x40ec46
cmp ax, 6
jne 0x40ec78
mov dword [ebx + 0x124], 2
jmp 0x40ec95
cmp ax, 9
jne 0x40ec8a
mov dword [ebx + 0x124], 3
jmp 0x40ec95
movzx eax, ax
neg eax
mov dword [ebx + 0x124], eax
cmp dword [ebp + 0x5c], esi
je 0x40ec9f
push dword [ebp + 0x5c]
call edi
pop edi
mov eax, ebx
pop esi
add ebp, 0x78
leave
ret