Function at 0x1014b490
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x101c1b88]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x334], 0
mov byte [ebp - 0x118], 0
push 0xff
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.1011e8d0
add esp, 0xc
mov byte [ebp - 0x330], 0
push 0x103
push 0
lea ecx, [ebp - 0x32f]
push ecx
call fcn.1011e8d0
add esp, 0xc
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea edx, [ebp - 0x21f]
push edx
call fcn.1011e8d0
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x14], 0
push 1
push 0x101c76e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1014b240
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1014b55e
xor eax, eax
jmp 0x1014b6ca
lea ecx, [ebp - 0x10]
push ecx
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1014b583
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1014b6ca
lea ecx, [ebp - 0x14]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x118]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1014b5be
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1014b6ca
lea eax, [ebp - 0x118]
mov dword [ebp - 0x334], eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x1014b617
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1014b6ca
push 0
push 0x101c76f4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1014b240
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x1014b683
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0xc], eax
jae 0x1014b65d
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x338], ecx
jmp 0x1014b669
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp - 0x338], edx
mov eax, dword [ebp - 0x338]
push eax
lea ecx, [ebp - 0x330]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1011e560
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x1014b6c5
mov eax, dword [ebp + 0x18]
sub eax, 1
cmp dword [ebp - 4], eax
jae 0x1014b69f
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x33c], ecx
jmp 0x1014b6ab
mov edx, dword [ebp + 0x18]
sub edx, 1
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.1011e560
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1011a380
mov esp, ebp
pop ebp
ret