Function at 0x78aebe38
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 [0x78b53610]
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 [0x78b57a1c], al
xor edi, edi
lea eax, [esp + 0x54]
push edi
push eax
mov byte [0x78b57a1d], 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 0x78aebebe
lea ecx, [esp + 0x20]
mov dword [0x78b57a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4ff68
lea eax, [esp + 0x24]
push eax
call sym.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x54]
push 5
pop edx
sub eax, edx
je 0x78aebfa7
dec eax
je 0x78aebf60
cmp dword [esp + 0x54], 7
jb 0x78aebf43
cmp byte [0x78b57a1c], 0
mov dword [0x78b57a18], 4
je 0x78aebef4
mov dword [0x78b57a18], edx
push 0x78aec2f4
push 0x78ae3cb8
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 0x78aec18f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aebf2b
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
lea ecx, [esp + 0x20]
mov dword [0x78b57a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4ff68
lea eax, [esp + 0x24]
jmp 0x78aebeb8
cmp dword [esp + 0x58], edi
je 0x78aebf9b
cmp byte [0x78b57a1c], 0
je 0x78aebf8c
mov eax, 0x1db0
cmp eax, dword [esp + 0x5c]
mov dword [0x78b57a18], edx
sbb al, al
inc al
mov byte [0x78b57a1d], al
jmp 0x78aebef4
mov dword [0x78b57a18], 4
jmp 0x78aebef4
mov dword [0x78b57a18], 3
jmp 0x78aec023
mov eax, dword [esp + 0x58]
sub eax, edi
je 0x78aec2d7
xor ecx, ecx
inc ecx
dec eax
je 0x78aebffe
dec eax
jne 0x78aec004
mov dword [0x78b57a18], 2
mov eax, dword [esp + 0x40]
mov dword [0x78b57a10], ecx
mov dword [0x78b57a14], ecx
mov dword [0x78b57a0c], eax
cmp dword [0x78b57a18], 5
jne 0x78aebfe9
call fcn.78afa3dd
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.78ab07a7
mov esp, ebp
pop ebp
ret
mov dword [0x78b57a18], ecx
mov eax, dword [0x78b57a18]
cmp eax, ecx
je 0x78aebfc6
cmp eax, 2
je 0x78aebfc6
cmp eax, 4
je 0x78aebef4
cmp eax, edx
je 0x78aebef4
push 0x78aec318
push 0x78ae3cb8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x78aec06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78aec054
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
mov esi, 0x78b57a24
push esi
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x78aec0aa
call edi
test eax, eax
jle 0x78aec092
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
push dword [0x78b57a24]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b57a28], eax
test eax, eax
jne 0x78aec0ed
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb0d8
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abbd3c
push 0x78abbdd8
lea eax, [esp + 0x24]
jmp 0x78aebeb8
push esi
push eax
call ebx
test eax, eax
jne 0x78aec11d
call edi
test eax, eax
jle 0x78aec105
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
mov eax, dword [esp + 0x40]
mov ecx, dword [0x78b57a28]
xor edi, edi
mov dword [0x78b57a0c], eax
mov eax, dword [0x78b57a24]
mov dword [0x78b57a10], edi
mov dword [0x78b57a14], edi
cmp eax, edi
jbe 0x78aec16d
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 0x78aec15c
inc dword [0x78b57a10]
cmp edx, 1
jne 0x78aec167
inc dword [0x78b57a14]
add esi, 0x18
dec eax
jne 0x78aec14f
cmp byte [ebp + 8], 0
jne 0x78aebfdb
push ecx
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b57a28], edi
mov dword [0x78b57a24], edi
jmp 0x78aebfdb
mov esi, 0x78b57a24
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 0x78aec1d0
call ebx
test eax, eax
jle 0x78aec1b8
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
push dword [0x78b57a24]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b57a28], eax
test eax, eax
jne 0x78aec213
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78abb0d8
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78abbd3c
push 0x78abbdd8
lea eax, [esp + 0x24]
jmp 0x78aebeb8
push esi
push eax
push edi
call dword [esp + 0x18]
test eax, eax
jne 0x78aec243
call ebx
test eax, eax
jle 0x78aec22b
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 0x78b4feb4
lea eax, [esp + 0x14]
jmp 0x78aebeb8
mov ecx, dword [0x78b57a24]
mov esi, dword [0x78b57a28]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0xc], ebx
mov dword [0x78b57a10], ebx
mov dword [0x78b57a14], ebx
mov dword [0x78b57a0c], ebx
cmp ecx, ebx
jbe 0x78aec2b4
mov edx, dword [eax]
cmp edx, 3
jne 0x78aec27a
inc dword [0x78b57a10]
cmp edx, 1
jne 0x78aec285
inc dword [0x78b57a14]
cmp edx, ebx
jne 0x78aec2a5
mov edx, dword [eax + 0x20]
xor edi, edi
cmp edx, ebx
je 0x78aec29c
lea ebx, [edx - 1]
inc edi
and edx, ebx
jne 0x78aec292
xor ebx, ebx
movzx edx, di
add dword [0x78b57a0c], edx
mov edx, dword [eax + 4]
add dword [esp + 0xc], edx
add eax, edx
cmp dword [esp + 0xc], ecx
jb 0x78aec26d
cmp byte [ebp + 8], 0
jne 0x78aec2cd
push esi
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b57a28], ebx
mov dword [0x78b57a24], ebx
call fcn.78aebd35
jmp 0x78aebfdb
lea ecx, [esp + 0x10]
mov dword [0x78b57a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4ff68
lea eax, [esp + 0x14]
jmp 0x78aebeb8