Function at 0x78aebc7a
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 0x78aebd00
lea ecx, [esp + 0x20]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cac
lea eax, [esp + 0x24]
push eax
call sym.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x54]
push 5
pop ecx
sub eax, ecx
je 0x78aebdec
dec eax
je 0x78aebda2
cmp dword [esp + 0x54], 7
jb 0x78aebd85
cmp byte [0x78b589b4], 0
mov dword [0x78b589b0], 4
je 0x78aebd36
mov dword [0x78b589b0], ecx
push 0x78aec140
push 0x78ae3c80
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 0x78aebfdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aebd6d
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
lea ecx, [esp + 0x20]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cac
lea eax, [esp + 0x24]
jmp 0x78aebcfa
cmp dword [esp + 0x58], edi
je 0x78aebddd
cmp byte [0x78b589b4], 0
je 0x78aebdce
mov eax, 0x1db0
cmp eax, dword [esp + 0x5c]
mov dword [0x78b589b0], ecx
sbb al, al
inc al
mov byte [0x78b589b5], al
jmp 0x78aebd36
mov dword [0x78b589b0], 4
jmp 0x78aebd36
mov dword [0x78b589b0], 3
jmp 0x78aebe70
mov eax, dword [esp + 0x58]
sub eax, edi
je 0x78aec123
dec eax
je 0x78aebe46
dec eax
jne 0x78aebe50
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.78aebb8d
cmp dword [0x78b589b0], 5
jne 0x78aebe31
call fcn.78afa23b
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.78ab0817
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
mov dword [0x78b589b0], eax
jmp 0x78aebe55
mov eax, dword [0x78b589b0]
cmp eax, 1
je 0x78aebe08
cmp eax, 2
je 0x78aebe08
cmp eax, 4
je 0x78aebd36
cmp eax, ecx
je 0x78aebd36
push 0x78aec164
push 0x78ae3c80
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x78aebeb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aebea1
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
mov esi, 0x78b589bc
push esi
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x78aebef7
call edi
test eax, eax
jle 0x78aebedf
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
push dword [0x78b589bc]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b589c0], eax
test eax, eax
jne 0x78aebf3a
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb75c
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abc7f4
push 0x78abc890
lea eax, [esp + 0x24]
jmp 0x78aebcfa
push esi
push eax
call ebx
test eax, eax
jne 0x78aebf6a
call edi
test eax, eax
jle 0x78aebf52
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
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 0x78aebfba
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 0x78aebfa9
inc dword [0x78b589a8]
cmp edx, 1
jne 0x78aebfb4
inc dword [0x78b589ac]
add esi, 0x18
dec eax
jne 0x78aebf9c
cmp byte [ebp + 8], 0
jne 0x78aebe1e
push ecx
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b589c0], edi
mov dword [0x78b589bc], edi
jmp 0x78aebe1e
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 0x78aec01d
call ebx
test eax, eax
jle 0x78aec005
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
push dword [0x78b589bc]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b589c0], eax
test eax, eax
jne 0x78aec060
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb75c
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abc7f4
push 0x78abc890
lea eax, [esp + 0x24]
jmp 0x78aebcfa
push esi
push eax
push edi
call dword [esp + 0x18]
test eax, eax
jne 0x78aec090
call ebx
test eax, eax
jle 0x78aec078
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 0x78b50bf8
lea eax, [esp + 0x14]
jmp 0x78aebcfa
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 0x78aec101
mov edx, dword [eax]
cmp edx, 3
jne 0x78aec0c7
inc dword [0x78b589a8]
cmp edx, 1
jne 0x78aec0d2
inc dword [0x78b589ac]
cmp edx, ebx
jne 0x78aec0f2
mov edx, dword [eax + 0x20]
xor edi, edi
cmp edx, ebx
je 0x78aec0e9
lea ebx, [edx - 1]
inc edi
and edx, ebx
jne 0x78aec0df
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 0x78aec0ba
cmp byte [ebp + 8], 0
jne 0x78aebe1e
push esi
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b589c0], ebx
mov dword [0x78b589bc], ebx
jmp 0x78aebe1e
lea ecx, [esp + 0x10]
mov dword [0x78b589b0], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b50cac
lea eax, [esp + 0x14]
jmp 0x78aebcfa