Function at 0x417f00
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0xd4
push 0xfffffffffffffffe
push 0x438ac0
push 0x422f60
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x43c730]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xd0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0x14
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov byte [ebp], bl
mov byte [ebp + 1], bl
mov byte [ebp + 2], bl
mov byte [ebp + 3], bl
mov byte [ebp + 4], bl
mov byte [ebp + 5], 5
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 0x2c]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x417fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4180fa
lea ecx, [ebp - 0x2c]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4180fa
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4180fa
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x4180fa
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4180fa
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
add esi, 0x10
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4180fa
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4180fa
mov edx, dword [ebp - 0x1c]
push edx
push 3
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x4180fa
push 0
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4180fa
push 0
mov eax, dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
je 0x4180fa
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x40]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x4180f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AccessCheck___failed_with_error__lu_n
lea edx, [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4180fa
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 4], 0xfffffffe
call fcn.00418134
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd0]
xor ecx, ebp
call fcn.00422272
add ebp, 0xd4
mov esp, ebp
pop ebp
ret