Function at 0x1012a2a0
Capabilities:
Check os version
Get system information on windows
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10185268
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x101fb008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x194], ebx
mov dword [ebp - method.RC::DM::RCSystemVersion.virtual_0], vtable.RC::DM::RCSystemVersion.0
mov byte [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - method.RC::DM::RCVersion.virtual_0], vtable.RC::DM::RCVersion.0
movlpd qword [ebp - 0x168], xmm0
movlpd qword [ebp - 0x160], xmm0
movlpd qword [ebp - 0x158], xmm0
movlpd qword [ebp - 0x150], xmm0
mov dword [ebp - 4], 0
mov ecx, 0x102017cc
mov dword [ebp - 0x13c], 0x102017cc
call fcn.10133e80
mov byte [ebp - 4], 1
cmp dword [0x102017c8], 0
jne 0x1012a39f
push 0x34
call fcn.10148008
mov esi, eax
add esp, 4
mov dword [ebp - 0x148], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10062090
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 1
mov dword [0x102017c8], esi
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.10134030
lea eax, [ebp - 0x12c]
push eax
call fcn.10133f10
test al, al
jne 0x1012a3dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebx], 1
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 3
jmp 0x1012a6b9
mov eax, dword [ebp - 0x128]
movzx ecx, word [ebp - 0x18]
cdq
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x184], edx
cdq
mov esi, eax
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x120]
cdq
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x178], ecx
mov byte [ebp - 0x12d], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x1b8]
cmp cx, 9
je 0x1012a442
cmp cx, 6
jne 0x1012a446
mov al, 1
jmp 0x1012a44c
mov al, byte [ebp - 0x12d]
mov ecx, dword [ebp - 0x184]
xorps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0x174], eax
cmp byte [ebp - 0x12], 1
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x164], ecx
sete byte [ebp - 0x17c]
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x160], esi
movlpd qword [ebp - 0x158], xmm0
mov dword [ebp - 0x14c], ecx
cmp eax, 5
jne 0x1012a541
test esi, esi
je 0x1012a50a
cmp esi, 1
je 0x1012a560
cmp esi, 2
jne 0x1012a560
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1012a560
test dword [ebp - 0x14], 0x8000
jne 0x1012a50a
cmp byte [ebp - 0x17c], 0
je 0x1012a502
cmp dword [ebp - 0x174], 1
je 0x1012a50a
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push dword [ebp - 0x190]
mov byte [ebx], 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x1012a57c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 5
jmp 0x1012a6b9
cmp eax, 6
jne 0x1012a55b
test esi, esi
je 0x1012a50a
cmp esi, 1
je 0x1012a50a
cmp esi, 2
je 0x1012a50a
cmp esi, 3
jne 0x1012a560
jmp 0x1012a50a
cmp eax, 0xa
je 0x1012a50a
mov byte [ebx], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 4
jmp 0x1012a6b9
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1012a69c
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x1012a69c
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x138]
push ecx
push 4
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push ecx
push 0x14
push eax
mov dword [ebp - 0x138], 0
call esi
test eax, eax
jne 0x1012a60b
push dword [ebp - 0x134]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 7
jmp 0x1012a6b9
lea eax, [ebp - 0x138]
mov dword [ebp - 0x144], 3
push eax
push 4
lea eax, [ebp - 0x144]
mov dword [ebp - 0x138], 0
push eax
push 0x12
push dword [ebp - 0x134]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x134]
test eax, eax
jne 0x1012a666
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 8
jmp 0x1012a6b9
call esi
push ebx
call esi
cmp dword [ebp - 0x140], 0
je 0x1012a686
cmp dword [ebp - 0x144], 3
je 0x1012a686
mov eax, dword [ebp - 0x194]
mov byte [eax], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 9
jmp 0x1012a6b9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 6
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [ebp - method.RC::DM::RCSystemVersion.virtual_0], vtable.RC::DM::RCSystemVersion.0
mov dword [ebp - method.RC::DM::RCVersion.virtual_0], vtable.RC::DM::RCVersion.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10147fe4
mov esp, ebp
pop ebp
ret 0xc