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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101811f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x101f6008]
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, 0x101fc6e4
mov dword [ebp - 0x13c], 0x101fc6e4
call fcn.101302e0
mov byte [ebp - 4], 1
cmp dword [0x101fc6e0], 0
jne 0x101267ff
push 0x34
call fcn.10144448
mov esi, eax
add esp, 4
mov dword [ebp - 0x148], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100607b0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 1
mov dword [0x101fc6e0], esi
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.10130490
lea eax, [ebp - 0x12c]
push eax
call fcn.10130370
test al, al
jne 0x1012683c
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 0x10126b19
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 0x101268a2
cmp cx, 6
jne 0x101268a6
mov al, 1
jmp 0x101268ac
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 0x101269a1
test esi, esi
je 0x1012696a
cmp esi, 1
je 0x101269c0
cmp esi, 2
jne 0x101269c0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101269c0
test dword [ebp - 0x14], 0x8000
jne 0x1012696a
cmp byte [ebp - 0x17c], 0
je 0x10126962
cmp dword [ebp - 0x174], 1
je 0x1012696a
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 0x101269dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 5
jmp 0x10126b19
cmp eax, 6
jne 0x101269bb
test esi, esi
je 0x1012696a
cmp esi, 1
je 0x1012696a
cmp esi, 2
je 0x1012696a
cmp esi, 3
jne 0x101269c0
jmp 0x1012696a
cmp eax, 0xa
je 0x1012696a
mov byte [ebx], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 4
jmp 0x10126b19
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 0x10126afc
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x10126afc
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 0x10126a6b
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 0x10126b19
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 0x10126ac6
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 0x10126b19
call esi
push ebx
call esi
cmp dword [ebp - 0x140], 0
je 0x10126ae6
cmp dword [ebp - 0x144], 3
je 0x10126ae6
mov eax, dword [ebp - 0x194]
mov byte [eax], 1
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 9
jmp 0x10126b19
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.10144424
mov esp, ebp
pop ebp
ret 0xc