Function at 0x78ae99cc
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 [0x78b52610]
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 [0x78b56a1c], al
xor edi, edi
lea eax, [esp + 0x54]
push edi
push eax
mov byte [0x78b56a1d], 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 0x78ae9a52
lea ecx, [esp + 0x20]
mov dword [0x78b56a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4f9d0
lea eax, [esp + 0x24]
push eax
call sym.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x54]
push 5
pop edx
sub eax, edx
je 0x78ae9b3b
dec eax
je 0x78ae9af4
cmp dword [esp + 0x54], 7
jb 0x78ae9ad7
cmp byte [0x78b56a1c], 0
mov dword [0x78b56a18], 4
je 0x78ae9a88
mov dword [0x78b56a18], edx
push 0x78ae9e88
push 0x78ae18b0
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 0x78ae9d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78ae9abf
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
lea ecx, [esp + 0x20]
mov dword [0x78b56a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4f9d0
lea eax, [esp + 0x24]
jmp 0x78ae9a4c
cmp dword [esp + 0x58], edi
je 0x78ae9b2f
cmp byte [0x78b56a1c], 0
je 0x78ae9b20
mov eax, 0x1db0
cmp eax, dword [esp + 0x5c]
mov dword [0x78b56a18], edx
sbb al, al
inc al
mov byte [0x78b56a1d], al
jmp 0x78ae9a88
mov dword [0x78b56a18], 4
jmp 0x78ae9a88
mov dword [0x78b56a18], 3
jmp 0x78ae9bb7
mov eax, dword [esp + 0x58]
sub eax, edi
je 0x78ae9e6b
xor ecx, ecx
inc ecx
dec eax
je 0x78ae9b92
dec eax
jne 0x78ae9b98
mov dword [0x78b56a18], 2
mov eax, dword [esp + 0x40]
mov dword [0x78b56a10], ecx
mov dword [0x78b56a14], ecx
mov dword [0x78b56a0c], eax
cmp dword [0x78b56a18], 5
jne 0x78ae9b7d
call fcn.78af7e53
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.78ab1180
mov esp, ebp
pop ebp
ret
mov dword [0x78b56a18], ecx
mov eax, dword [0x78b56a18]
cmp eax, ecx
je 0x78ae9b5a
cmp eax, 2
je 0x78ae9b5a
cmp eax, 4
je 0x78ae9a88
cmp eax, edx
je 0x78ae9a88
push 0x78ae9eac
push 0x78ae18b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x78ae9c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x78ae9be8
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
mov esi, 0x78b56a24
push esi
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x78ae9c3e
call edi
test eax, eax
jle 0x78ae9c26
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
push dword [0x78b56a24]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b56a28], eax
test eax, eax
jne 0x78ae9c81
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78ab6a10
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78ab7bfc
push 0x78ab7c98
lea eax, [esp + 0x24]
jmp 0x78ae9a4c
push esi
push eax
call ebx
test eax, eax
jne 0x78ae9cb1
call edi
test eax, eax
jle 0x78ae9c99
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
mov eax, dword [esp + 0x40]
mov ecx, dword [0x78b56a28]
xor edi, edi
mov dword [0x78b56a0c], eax
mov eax, dword [0x78b56a24]
mov dword [0x78b56a10], edi
mov dword [0x78b56a14], edi
cmp eax, edi
jbe 0x78ae9d01
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 0x78ae9cf0
inc dword [0x78b56a10]
cmp edx, 1
jne 0x78ae9cfb
inc dword [0x78b56a14]
add esi, 0x18
dec eax
jne 0x78ae9ce3
cmp byte [ebp + 8], 0
jne 0x78ae9b6f
push ecx
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b56a28], edi
mov dword [0x78b56a24], edi
jmp 0x78ae9b6f
mov esi, 0x78b56a24
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 0x78ae9d64
call ebx
test eax, eax
jle 0x78ae9d4c
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
push dword [0x78b56a24]
call sym.MSVCR100.dll_malloc
pop ecx
mov dword [0x78b56a28], eax
test eax, eax
jne 0x78ae9da7
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0x78ab6a10
call sym.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_
mov dword [esp + 0x20], 0x78ab7bfc
push 0x78ab7c98
lea eax, [esp + 0x24]
jmp 0x78ae9a4c
push esi
push eax
push edi
call dword [esp + 0x18]
test eax, eax
jne 0x78ae9dd7
call ebx
test eax, eax
jle 0x78ae9dbf
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 0x78b4f91c
lea eax, [esp + 0x14]
jmp 0x78ae9a4c
mov ecx, dword [0x78b56a24]
mov esi, dword [0x78b56a28]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0xc], ebx
mov dword [0x78b56a10], ebx
mov dword [0x78b56a14], ebx
mov dword [0x78b56a0c], ebx
cmp ecx, ebx
jbe 0x78ae9e48
mov edx, dword [eax]
cmp edx, 3
jne 0x78ae9e0e
inc dword [0x78b56a10]
cmp edx, 1
jne 0x78ae9e19
inc dword [0x78b56a14]
cmp edx, ebx
jne 0x78ae9e39
mov edx, dword [eax + 0x20]
xor edi, edi
cmp edx, ebx
je 0x78ae9e30
lea ebx, [edx - 1]
inc edi
and edx, ebx
jne 0x78ae9e26
xor ebx, ebx
movzx edx, di
add dword [0x78b56a0c], edx
mov edx, dword [eax + 4]
add dword [esp + 0xc], edx
add eax, edx
cmp dword [esp + 0xc], ecx
jb 0x78ae9e01
cmp byte [ebp + 8], 0
jne 0x78ae9e61
push esi
call sym.MSVCR100.dll_free
pop ecx
mov dword [0x78b56a28], ebx
mov dword [0x78b56a24], ebx
call fcn.78ae98c9
jmp 0x78ae9b6f
lea ecx, [esp + 0x10]
mov dword [0x78b56a18], edi
call sym.MSVCR100.dll_public:_void___thiscall_Concurrency::unsupported_os::constructor_void_
push 0x78b4f9d0
lea eax, [esp + 0x14]
jmp 0x78ae9a4c