Function at 0x43e8e1
Capabilities:
Check os version

Disassembly:
push 0x154
mov eax, 0x477e7d
call fcn.0043cbbb
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 0x43e962
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 0x43e962
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.00408f1a
push 0x490a04
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 0x43ec69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43ec69
push dword [ebp - 0xac]
call fcn.0043ca7f
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 0x43e9f7
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.00408f1a
push 0x490a04
lea eax, [ebp - 0x160]
jmp 0x43e95c
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 0x43ea30
push 0xffffffffffffffff
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
push str.unable_to_get_string_version_of_current_token_sid
jmp 0x43e946
or esi, 0xffffffff
push esi
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x144]
call fcn.00408f1a
push dword [ebp - 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push esi
push 0x489324
lea ecx, [ebp - 0xe8]
call fcn.00408f1a
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.0040827c
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.00408f6c
push ebx
push esi
push str.D:_A__GRGW___
lea ecx, [ebp - 0xcc]
call fcn.00408f1a
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.00408f6c
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00403632
lea ecx, [ebp - 0xc4]
call fcn.00403632
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408f6c
push ebx
push esi
push 0x482b8c
lea ecx, [ebp - 0xcc]
call fcn.00408f1a
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.00408f6c
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00403632
lea ecx, [ebp - 0xc4]
call fcn.00403632
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 6
jb 0x43eb85
push ebx
push esi
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0xcc]
call fcn.00408f1a
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.00408f6c
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00403632
lea ecx, [ebp - 0xc4]
call fcn.00403632
lea ecx, [ebp - 0xe8]
call fcn.0040827c
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 0x43ec07
push ebx
push esi
push str.unable_to_create_security_descriptor_from_string
lea ecx, [ebp - 0xcc]
call fcn.00408f1a
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.004039d5
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.00403996
push 0x490a04
lea eax, [ebp - 0x110]
jmp 0x43e95c
mov eax, dword [ebp - 0xd0]
mov dword [edi + 4], eax
lea ecx, [ebp - 0xd8]
mov edi, eax
call fcn.00403632
lea ecx, [ebp - 0xe0]
call fcn.00403632
lea ecx, [ebp - 0x134]
call fcn.00403632
lea ecx, [ebp - 0x13c]
call fcn.00403632
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 0x43ec61
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0043cc3e
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.00408f1a
jmp 0x43ebf7