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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x78b54610]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x2c], 9
mov esi, 0x114
sete al
push esi
mov byte [0x78b589b4], al
xor edi, edi
lea eax, [esp + 0x54]
push edi
push eax
mov byte [0x78b589b5], 0
call sym.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x78aebd34
lea ecx, [esp + 0x20]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cfc
lea eax, [esp + 0x24]
push eax
call sym.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x54]
push 5
pop ecx
sub eax, ecx
je 0x78aebe20
dec eax
je 0x78aebdd6
cmp dword [esp + 0x54], 7
jb 0x78aebdb9
cmp byte [0x78b589b4], 0
mov dword [0x78b589b0], 4
je 0x78aebd6a
mov dword [0x78b589b0], ecx
push 0x78aec174
push 0x78ae3cb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
cmp eax, edi
jne 0x78aec010
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aebda1
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
lea ecx, [esp + 0x20]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cfc
lea eax, [esp + 0x24]
jmp 0x78aebd2e
cmp dword [esp + 0x58], edi
je 0x78aebe11
cmp byte [0x78b589b4], 0
je 0x78aebe02
mov eax, 0x1db0
cmp eax, dword [esp + 0x5c]
mov dword [0x78b589b0], ecx
sbb al, al
inc al
mov byte [0x78b589b5], al
jmp 0x78aebd6a
mov dword [0x78b589b0], 4
jmp 0x78aebd6a
mov dword [0x78b589b0], 3
jmp 0x78aebea4
mov eax, dword [esp + 0x58]
sub eax, edi
je 0x78aec157
dec eax
je 0x78aebe7a
dec eax
jne 0x78aebe84
mov dword [0x78b589b0], 2
xor eax, eax
inc eax
mov dword [0x78b589a8], eax
mov dword [0x78b589ac], eax
mov eax, dword [esp + 0x40]
mov dword [0x78b589a4], eax
call fcn.78aebbbd
cmp dword [0x78b589b0], 5
jne 0x78aebe65
call fcn.78afa277
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.78ab0807
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
mov dword [0x78b589b0], eax
jmp 0x78aebe89
mov eax, dword [0x78b589b0]
cmp eax, 1
je 0x78aebe3c
cmp eax, 2
je 0x78aebe3c
cmp eax, 4
je 0x78aebd6a
cmp eax, ecx
je 0x78aebd6a
push 0x78aec198
push 0x78ae3cb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x78aebeed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aebed5
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
mov esi, 0x78b589bc
push esi
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x78aebf2b
call edi
test eax, eax
jle 0x78aebf13
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
push dword [0x78b589bc]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b589c0], eax
test eax, eax
jne 0x78aebf6e
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb754
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abc7ec
push 0x78abc888
lea eax, [esp + 0x24]
jmp 0x78aebd2e
push esi
push eax
call ebx
test eax, eax
jne 0x78aebf9e
call edi
test eax, eax
jle 0x78aebf86
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
mov eax, dword [esp + 0x40]
mov ecx, dword [0x78b589c0]
xor edi, edi
mov dword [0x78b589a4], eax
mov eax, dword [0x78b589bc]
mov dword [0x78b589a8], edi
mov dword [0x78b589ac], edi
cmp eax, edi
jbe 0x78aebfee
push 0x18
dec eax
xor edx, edx
pop ebx
div ebx
lea esi, [ecx + 4]
inc eax
mov edx, dword [esi]
cmp edx, 3
jne 0x78aebfdd
inc dword [0x78b589a8]
cmp edx, 1
jne 0x78aebfe8
inc dword [0x78b589ac]
add esi, 0x18
dec eax
jne 0x78aebfd0
cmp byte [ebp + 8], 0
jne 0x78aebe52
push ecx
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b589c0], edi
mov dword [0x78b589bc], edi
jmp 0x78aebe52
mov esi, 0x78b589bc
push esi
push edi
mov edi, 0xffff
push edi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x78aec051
call ebx
test eax, eax
jle 0x78aec039
and eax, edi
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
push dword [0x78b589bc]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b589c0], eax
test eax, eax
jne 0x78aec094
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb754
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abc7ec
push 0x78abc888
lea eax, [esp + 0x24]
jmp 0x78aebd2e
push esi
push eax
push edi
call dword [esp + 0x18]
test eax, eax
jne 0x78aec0c4
call ebx
test eax, eax
jle 0x78aec0ac
and eax, edi
or eax, 0x80070000
push eax
lea ecx, [esp + 0x14]
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::scheduler_resource_allocation_error::constructor_long_int_
push 0x78b50c48
lea eax, [esp + 0x14]
jmp 0x78aebd2e
mov ecx, dword [0x78b589bc]
mov esi, dword [0x78b589c0]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0xc], ebx
mov dword [0x78b589a8], ebx
mov dword [0x78b589ac], ebx
mov dword [0x78b589a4], ebx
cmp ecx, ebx
jbe 0x78aec135
mov edx, dword [eax]
cmp edx, 3
jne 0x78aec0fb
inc dword [0x78b589a8]
cmp edx, 1
jne 0x78aec106
inc dword [0x78b589ac]
cmp edx, ebx
jne 0x78aec126
mov edx, dword [eax + 0x20]
xor edi, edi
cmp edx, ebx
je 0x78aec11d
lea ebx, [edx - 1]
inc edi
and edx, ebx
jne 0x78aec113
xor ebx, ebx
movzx edx, di
add dword [0x78b589a4], edx
mov edx, dword [eax + 4]
add dword [esp + 0xc], edx
add eax, edx
cmp dword [esp + 0xc], ecx
jb 0x78aec0ee
cmp byte [ebp + 8], 0
jne 0x78aebe52
push esi
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b589c0], ebx
mov dword [0x78b589bc], ebx
jmp 0x78aebe52
lea ecx, [esp + 0x10]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cfc
lea eax, [esp + 0x14]
jmp 0x78aebd2e