Function at 0x1001c52
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1004018]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
push ebx
xor ebx, ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x25c], 0x12
mov dword [ebp - 0x258], ebx
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x250], eax
xor eax, eax
mov dword [ebp - 0x24c], 0x20
mov dword [ebp - 0x248], ebx
lea edi, [ebp - 0x244]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x23c], 0xb
mov dword [ebp - 0x238], ebx
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x230], eax
xor eax, eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x220], eax
xor eax, eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
lea edi, [ebp - 0x214]
stosd dword es:[edi], eax
xor esi, esi
lea eax, [ebp - 0xc]
inc esi
mov dword [ebp - 0x210], eax
xor eax, eax
lea edi, [ebp - 0x204]
mov dword [ebp - 0x20c], 7
mov dword [ebp - 0x208], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x1b8]
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1c0], 0x220
mov dword [ebp - 0x1bc], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 1
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 3
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1b0], 0x225
mov dword [ebp - 0x1ac], ebx
lea edi, [ebp - 0x1a8]
stosd dword es:[edi], eax
lea edi, [ebp - 0x198]
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], 0x227
mov dword [ebp - 0x19c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x13c], ebx
lea edi, [ebp - 0x25c]
lea eax, [edi + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi]
push esi
push dword [edi - 4]
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001e17
inc dword [ebp - 0x13c]
add edi, 0x10
cmp dword [ebp - 0x13c], 6
jb 0x1001de8
jmp 0x1001e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 0x13c], eax
jne 0x1001e4e
xor edi, edi
lea esi, [ebp - 0x1c4]
push esi
push dword [ebp - 0x244]
call fcn.01001ad3
cmp eax, ebx
mov dword [ebp - 0x13c], eax
jne 0x1001e4e
inc edi
add esi, 0x10
cmp edi, 3
jb 0x1001e2f
cmp dword [ebp - 0x13c], ebx
mov esi, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x1b8]
mov eax, 0x1f01ff
mov ecx, 0x1200ab
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e0], esi
mov esi, dword [ebp - 0x198]
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x17c], ecx
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x170], eax
mov eax, 0xd0046
mov dword [ebp - 0x1d4], esi
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x174], ecx
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x204]
mov byte [ebp - 0x1fc], bl
mov byte [ebp - 0x1fb], 3
mov dword [ebp - 0x1f8], edx
mov byte [ebp - 0x1f0], bl
mov byte [ebp - 0x1ef], 3
mov dword [ebp - 0x1ec], edi
mov byte [ebp - 0x1e4], bl
mov byte [ebp - 0x1e3], bl
mov byte [ebp - 0x1d8], bl
mov byte [ebp - 0x1d7], bl
mov byte [ebp - 0x1cc], bl
mov byte [ebp - 0x1cb], 0xb
mov dword [ebp - 0x1c8], esi
mov byte [ebp - 0x190], bl
mov byte [ebp - 0x18f], 3
mov dword [ebp - 0x18c], edx
mov byte [ebp - 0x184], bl
mov byte [ebp - 0x183], 3
mov dword [ebp - 0x180], edi
mov byte [ebp - 0x178], bl
mov byte [ebp - 0x177], bl
mov byte [ebp - 0x16c], bl
mov byte [ebp - 0x16b], 0xb
mov dword [ebp - 0x168], esi
mov byte [ebp - 0x160], 2
mov byte [ebp - 0x15f], 0xc3
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 0x154], 2
mov byte [ebp - 0x153], 0xc3
mov dword [ebp - 0x150], eax
jne 0x1002077
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x138], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001fd5
mov dword [ebp - 0x13c], 0x32
jmp 0x1002077
cmp byte [ebp - 0x1e], 1
lea eax, [ebp - 0x164]
push eax
push 2
jne 0x1001fef
lea eax, [ebp - 0x194]
push eax
push 4
jmp 0x1001ff8
lea eax, [ebp - 0x200]
push eax
push 5
lea eax, [ebp - 0x140]
push eax
call fcn.01001925
cmp eax, ebx
mov dword [ebp - 0x13c], eax
jne 0x1002077
lea eax, [ebp - 0x148]
push eax
push 1
mov esi, 0x10011e4
push esi
call fcn.01001886
test eax, eax
je 0x100202c
mov dword [ebp - 0x144], ebx
cmp dword [ebp - 0x144], ebx
push 4
pop eax
je 0x100203a
push 0xc
pop eax
push dword [ebp - 0x140]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp dword [ebp - 0x148], ebx
mov edi, eax
jne 0x100205f
push ebx
push ebx
push esi
call fcn.01001886
cmp edi, ebx
jne 0x1002071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x13c], eax
jmp 0x1002077
mov dword [ebp - 0x13c], ebx
push 6
lea esi, [ebp - 0x254]
pop edi
mov eax, dword [esi]
cmp eax, ebx
je 0x100208d
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
add esi, 0x10
dec edi
jne 0x1002080
push 3
lea esi, [ebp - 0x1b8]
pop edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x10
dec edi
jne 0x100209c
cmp dword [ebp - 0x140], ebx
pop edi
pop esi
pop ebx
je 0x10020c0
push dword [ebp - 0x140]
call fcn.010016f9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x13c]
call fcn.010025d9
leave
ret 4