Function at 0x440467
Capabilities:
Check os version

Disassembly:
push 0x154
mov eax, 0x47ac78
call fcn.0043eed3
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 0x4404e8
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 0x4404e8
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.00408d63
push 0x493cfc
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 0x4407ef
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4407ef
push dword [ebp - 0xac]
call fcn.00447b4e
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 0x44057d
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.00408d63
push 0x493cfc
lea eax, [ebp - 0x160]
jmp 0x4404e2
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 0x4405b6
push 0xffffffffffffffff
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
push str.unable_to_get_string_version_of_current_token_sid
jmp 0x4404cc
or esi, 0xffffffff
push esi
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x144]
call fcn.00408d63
push dword [ebp - 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_LocalFree]
push 1
push esi
push 0x48c4e0
lea ecx, [ebp - 0xe8]
call fcn.00408d63
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.004080c5
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.00408db5
push ebx
push esi
push str.D:_A__GRGW___
lea ecx, [ebp - 0xcc]
call fcn.00408d63
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.00408db5
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.004035af
lea ecx, [ebp - 0xc4]
call fcn.004035af
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408db5
push ebx
push esi
push 0x485cf4
lea ecx, [ebp - 0xcc]
call fcn.00408d63
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.00408db5
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.004035af
lea ecx, [ebp - 0xc4]
call fcn.004035af
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 6
jb 0x44070b
push ebx
push esi
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0xcc]
call fcn.00408d63
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.00408db5
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.004035af
lea ecx, [ebp - 0xc4]
call fcn.004035af
lea ecx, [ebp - 0xe8]
call fcn.004080c5
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 0x44078d
push ebx
push esi
push str.unable_to_create_security_descriptor_from_string
lea ecx, [ebp - 0xcc]
call fcn.00408d63
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.0041ebf4
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.00403a4f
push 0x493cfc
lea eax, [ebp - 0x110]
jmp 0x4404e2
mov eax, dword [ebp - 0xd0]
mov dword [edi + 4], eax
lea ecx, [ebp - 0xd8]
mov edi, eax
call fcn.004035af
lea ecx, [ebp - 0xe0]
call fcn.004035af
lea ecx, [ebp - 0x134]
call fcn.004035af
lea ecx, [ebp - 0x13c]
call fcn.004035af
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 0x4407e7
push dword [ebp - 0xa8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.0043ef56
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.00408d63
jmp 0x44077d