Function at 0x46c940
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af5b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ef340]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
push edi
push 0
mov dword [ebp - 4], 0
call fcn.0042c400
add esp, 8
test al, al
je 0x46cb2a
push str.advapi32.dll
call fcn.0042b4b0
mov ecx, dword [edi + 4]
add esp, 4
mov dword [edi + 4], eax
test ecx, ecx
je 0x46c9b3
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push 0
call fcn.0042c400
add esp, 8
test al, al
jne 0x46cbeb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetEntriesInAclW
push dword [edi + 4]
call esi
push str.GetFileSecurityW
mov dword [edi + 0x24], eax
push dword [edi + 4]
call esi
push str.SetFileSecurityW
mov dword [edi + 0x28], eax
push dword [edi + 4]
call esi
push str.LookupAccountSidW
mov dword [edi + 0x44], eax
push dword [edi + 4]
call esi
push str.GetExplicitEntriesFromAclW
mov dword [edi + 0x70], eax
push dword [edi + 4]
call esi
push 0x4b44ec
mov dword [edi + 0x88], eax
push dword [edi + 4]
call esi
push 0x4b4500
mov dword [edi + 0x2c], eax
push dword [edi + 4]
call esi
push 0x4b4514
mov dword [edi + 0x30], eax
push dword [edi + 4]
call esi
push 0x4b4534
mov dword [edi + 0x34], eax
push dword [edi + 4]
call esi
push str.GetSecurityDescriptorDacl
mov dword [edi + 0x38], eax
push dword [edi + 4]
call esi
push 0x4b456c
mov dword [edi + 0x3c], eax
push dword [edi + 4]
call esi
push 0x4b4588
mov dword [edi + 0x40], eax
push dword [edi + 4]
call esi
push 0x4b4590
mov dword [edi + 0x48], eax
push dword [edi + 4]
call esi
push 0x4b45a0
mov dword [edi + 0x68], eax
push dword [edi + 4]
call esi
push 0x4b45b4
mov dword [edi + 0x6c], eax
push dword [edi + 4]
call esi
push str.InitializeSid
mov dword [edi + 0x4c], eax
push dword [edi + 4]
call esi
push str.GetSidSubAuthority
mov dword [edi + 0x50], eax
push dword [edi + 4]
call esi
push 0x4b45e8
mov dword [edi + 0x54], eax
push dword [edi + 4]
call esi
push str.GetSecurityInfo
mov dword [edi + 0x58], eax
push dword [edi + 4]
call esi
push str.SetSecurityInfo
mov dword [edi + 0x5c], eax
push dword [edi + 4]
call esi
mov dword [edi + 0x60], eax
push str.QueryServiceStatusEx
push dword [edi + 4]
call esi
push 0x4b4634
mov dword [edi + 0x64], eax
push dword [edi + 4]
call esi
push str.DeleteAce
mov dword [edi + 0x74], eax
push dword [edi + 4]
call esi
push 0x4b4648
mov dword [edi + 0x78], eax
push dword [edi + 4]
call esi
push 0x4b4654
mov dword [edi + 0x7c], eax
push dword [edi + 4]
call esi
push str.SetSecurityDescriptorControl
mov dword [edi + 0x80], eax
push dword [edi + 4]
call esi
mov dword [edi + 0x84], eax
lea esi, [edi + 8]
cmp dword [edi + 0x24], 0
je 0x46cbeb
cmp dword [edi + 0x28], 0
je 0x46cbeb
cmp dword [edi + 0x2c], 0
je 0x46cbeb
cmp dword [edi + 0x30], 0
je 0x46cbeb
cmp dword [edi + 0x34], 0
je 0x46cbeb
cmp dword [edi + 0x38], 0
je 0x46cbeb
cmp dword [edi + 0x3c], 0
je 0x46cbeb
cmp dword [edi + 0x40], 0
je 0x46cbeb
cmp dword [edi + 0x44], 0
je 0x46cbeb
cmp dword [edi + 0x48], 0
je 0x46cbeb
cmp dword [edi + 0x4c], 0
je 0x46cbeb
cmp dword [edi + 0x50], 0
je 0x46cbeb
cmp dword [edi + 0x54], 0
je 0x46cbeb
cmp dword [edi + 0x58], 0
je 0x46cbeb
cmp dword [edi + 0x5c], 0
je 0x46cbeb
cmp dword [edi + 0x60], 0
je 0x46cbeb
cmp dword [edi + 0x64], 0
je 0x46cbeb
cmp dword [edi + 0x68], 0
je 0x46cbeb
cmp dword [edi + 0x6c], 0
je 0x46cbeb
cmp dword [edi + 0x70], 0
je 0x46cbeb
cmp dword [edi + 0x80], 0
je 0x46cbeb
cmp dword [edi + 0x74], 0
je 0x46cbeb
cmp dword [edi + 0x78], 0
je 0x46cbeb
cmp dword [edi + 0x7c], 0
je 0x46cbeb
cmp dword [edi + 0x84], 0
je 0x46cbeb
cmp dword [edi + 0x88], 0
je 0x46cbeb
mov bl, 1
jmp 0x46cbed
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret