Function at 0x2a85a46a
Capabilities:
Check os version

Disassembly:
push 0x154
mov eax, 0x2a8d2db5
call fcn.2a85a9c0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push eax
push 1
xor ebx, ebx
push 8
mov dword [edi + 8], ebx
mov dword [edi], 0xc
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x2a85a4eb
lea eax, [ebp - 0xa8]
push eax
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x2a85a4eb
push ebx
push 0xffffffffffffffff
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
push str.unable_to_get_current_user_token
lea ecx, [ebp - 0x128]
call fcn.2a8013d4
push 0x2a90af6c
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xf0], eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0xac]
push ecx
push ebx
push ebx
push 1
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x2a85a7f2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x2a85a7f2
push dword [ebp - 0xac]
call fcn.2a836981
pop ecx
lea ecx, [ebp - 0xac]
push ecx
push dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
push eax
push 1
push dword [ebp - 0xa8]
call esi
test eax, eax
jne 0x2a85a580
push ebx
push 0xffffffffffffffff
push str.unable_to_get_token_info
lea ecx, [ebp - 0x15c]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.2a8013d4
push 0x2a90af6c
lea eax, [ebp - 0x160]
jmp 0x2a85a4e5
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xf4], eax
lea ecx, [ebp - 0xb4]
push ecx
push dword [eax]
mov byte [ebp - 4], 1
call sub.ADVAPI32.dll_ConvertSidToStringSidA
push ebx
test eax, eax
jne 0x2a85a5b9
push 0xffffffffffffffff
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
push str.unable_to_get_string_version_of_current_token_sid
jmp 0x2a85a4cf
or esi, 0xffffffff
push esi
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x144]
call fcn.2a8013d4
push dword [ebp - 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_LocalFree]
push 1
push esi
push 0x2a8dd978
lea ecx, [ebp - 0xe8]
call fcn.2a8013d4
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.2a858eb5
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.2a8596bd
push ebx
push esi
push str.D:_A__GRGW___
lea ecx, [ebp - 0xcc]
call fcn.2a8013d4
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.2a8596bd
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.2a8017d5
lea ecx, [ebp - 0xc4]
call fcn.2a8017d5
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
call fcn.2a8596bd
push ebx
push esi
push 0x2a8d5a7c
lea ecx, [ebp - 0xcc]
call fcn.2a8013d4
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.2a8596bd
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.2a8017d5
lea ecx, [ebp - 0xc4]
call fcn.2a8017d5
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 6
jb 0x2a85a70e
push ebx
push esi
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0xcc]
call fcn.2a8013d4
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.2a8596bd
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.2a8017d5
lea ecx, [ebp - 0xc4]
call fcn.2a8017d5
lea ecx, [ebp - 0xe8]
call fcn.2a858eb5
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xd0]
push ecx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
jne 0x2a85a790
push ebx
push esi
push str.unable_to_create_security_descriptor_from_string
lea ecx, [ebp - 0xcc]
call fcn.2a8013d4
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x15c]
push eax
mov byte [ebp - 4], 8
call fcn.2a807c56
add esp, 0xc
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 9
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.2a807c17
push 0x2a90af6c
lea eax, [ebp - 0x110]
jmp 0x2a85a4e5
mov eax, dword [ebp - 0xd0]
mov dword [edi + 4], eax
lea ecx, [ebp - 0xd8]
mov edi, eax
call fcn.2a8017d5
lea ecx, [ebp - 0xe0]
call fcn.2a8017d5
lea ecx, [ebp - 0x134]
call fcn.2a8017d5
lea ecx, [ebp - 0x13c]
call fcn.2a8017d5
push dword [ebp - 0xb0]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xa8], esi
je 0x2a85a7ea
push dword [ebp - 0xa8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.2a85aa2f
ret
push ebx
push 0xffffffffffffffff
push str.unable_to_get_size_of_token_info
lea ecx, [ebp - 0x10c]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.2a8013d4
jmp 0x2a85a780