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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x101f8008]
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, 0x101fe6f4
mov dword [ebp - 0x13c], 0x101fe6f4
call fcn.10131ee0
mov byte [ebp - 4], 1
cmp dword [0x101fe6f0], 0
jne 0x101283ff
push 0x34
call fcn.10146078
mov esi, eax
add esp, 4
mov dword [ebp - 0x148], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10060680
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 1
mov dword [0x101fe6f0], esi
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.10132090
lea eax, [ebp - 0x12c]
push eax
call fcn.10131f70
test al, al
jne 0x1012843c
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 0x10128719
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 0x101284a2
cmp cx, 6
jne 0x101284a6
mov al, 1
jmp 0x101284ac
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 0x101285a1
test esi, esi
je 0x1012856a
cmp esi, 1
je 0x101285c0
cmp esi, 2
jne 0x101285c0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101285c0
test dword [ebp - 0x14], 0x8000
jne 0x1012856a
cmp byte [ebp - 0x17c], 0
je 0x10128562
cmp dword [ebp - 0x174], 1
je 0x1012856a
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 0x101285dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 5
jmp 0x10128719
cmp eax, 6
jne 0x101285bb
test esi, esi
je 0x1012856a
cmp esi, 1
je 0x1012856a
cmp esi, 2
je 0x1012856a
cmp esi, 3
jne 0x101285c0
jmp 0x1012856a
cmp eax, 0xa
je 0x1012856a
mov byte [ebx], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 4
jmp 0x10128719
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 0x101286fc
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x101286fc
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 0x1012866b
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 0x10128719
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 0x101286c6
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 0x10128719
call esi
push ebx
call esi
cmp dword [ebp - 0x140], 0
je 0x101286e6
cmp dword [ebp - 0x144], 3
je 0x101286e6
mov eax, dword [ebp - 0x194]
mov byte [eax], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 9
jmp 0x10128719
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.10146054
mov esp, ebp
pop ebp
ret 0xc