Function at 0x10002dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10029128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x3c
mov dword [ebp - 0x130], edi
call fcn.1001030b
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
mov dword [ebp - 0x124], eax
call fcn.10002bf0
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.100119a0
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10002f93
cmp dword [ebp - 0x110], 2
jne 0x10002f93
cmp dword [ebp - 0x11c], 5
jbe 0x10002f93
lea edx, [ebp - 0x128]
push edx
push 8
mov dword [ebp - 0x128], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10002f84
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x12c]
push eax
push ebx
push ebx
push 0x19
push ecx
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10002f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10002f43
mov edx, dword [ebp - 0x12c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002f22
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x12c]
push eax
push ecx
push edi
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10002f04
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [eax]
mov edx, dword [edi]
dec ecx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x130]
jmp 0x10002f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000d060
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x130]
jmp 0x10002f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.M_ALLOC___ERROR__d_n
push 0x3d9
call fcn.1000d060
mov edi, dword [ebp - 0x130]
add esp, 0xc
jmp 0x10002f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000d060
add esp, 4
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x2000
ja 0x10002fb1
je 0x10002fa2
test ebx, ebx
je 0x10002f93
cmp ebx, 0x1000
jne 0x10002fe7
mov ecx, dword [ebp - 0x124]
push esi
push ecx
push 0x10025abc
jmp 0x10002fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000d060
add esp, 4
mov edx, dword [ebp - 0x124]
push esi
push edx
push str._s__s_None
jmp 0x10002fdd
mov eax, dword [ebp - 0x124]
push esi
push eax
push 0x10025acc
jmp 0x10002fdd
cmp ebx, 0x3000
je 0x10002fd0
cmp ebx, 0x4000
jne 0x10002fe7
mov ecx, dword [ebp - 0x124]
push esi
push ecx
push str._d__s_
jmp 0x10002fdd
mov edx, dword [ebp - 0x124]
push esi
push edx
push 0x10025adc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test esi, esi
je 0x10002ff4
push esi
call fcn.10010300
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000fb9f
mov esp, ebp
pop ebp
ret