Function at 0x421660
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x453948
push 0x409df0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffca8
mov eax, dword [0x4566e4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [0x45a808], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x45a5e0], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00421260
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x350], 0x114
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x34c]
shl edx, 8
or edx, dword [ebp - 0x348]
mov dword [ebp - 0x234], edx
cmp dword [ebp - 0x234], 0x502
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20109
mov dword [0x45a5e8], eax
call fcn.004039c0
movzx ecx, al
test ecx, ecx
je 0x42178e
call fcn.0042eb70
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
jne 0x421749
mov dword [ebp - 0x358], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x358]
jmp 0x4218fa
mov edx, dword [ebp - 0x354]
push edx
mov eax, dword [ebp - 0x354]
sub eax, 0x138f
neg eax
sbb eax, eax
and eax, 0xffffffc7
add eax, 0x1019
push eax
push 0
call fcn.00402900
add esp, 0xc
mov dword [ebp - 0x35c], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x35c]
jmp 0x4218fa
push 0x104
lea ecx, [ebp - 0x230]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45a80c], eax
cmp dword [0x45a80c], 0xffffffff
jne 0x4217e8
mov dword [ebp - 0x360], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x360]
jmp 0x4218fa
call fcn.00421330
movzx eax, al
test eax, eax
jne 0x421810
mov dword [ebp - 0x364], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x364]
jmp 0x4218fa
call fcn.00435530
mov dword [0x45a5f4], eax
push str.SeDebugPrivilege
call fcn.004039f0
add esp, 4
push str.SeBackupPrivilege
call fcn.004039f0
add esp, 4
push str.SeRestorePrivilege
call fcn.004039f0
add esp, 4
push str.SeTakeOwnershipPrivilege
call fcn.004039f0
add esp, 4
mov ecx, dword [0x45a5f0]
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x368]
sub edx, 1
mov dword [ebp - 0x368], edx
cmp dword [ebp - 0x368], 3
ja case.default.0x421878
mov eax, dword [ebp - 0x368]
jmp dword [eax*4 + 0x421918]
push 0
call fcn.0043e200
add esp, 4
jmp 0x4218c5
mov ecx, dword [0x45a5fc]
push ecx
push 0
call fcn.0043ccf0
add esp, 8
jmp 0x4218c5
push 0
call fcn.0043d170
add esp, 4
jmp 0x4218c5
mov edx, dword [0x45a5fc]
push edx
call fcn.00421550
add esp, 4
jmp 0x4218c5
push 0
call fcn.0043e220
add esp, 4
call fcn.00421190
mov eax, dword [0x45a80c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4218f8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret 0x10