Function at 0x406213
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
push 8
call fcn.0040e9d5
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040e9d5
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
mov eax, 0x18
call fcn.0040e9f3
cmp dword [ebp - 0x14], esp
je 0x406295
push 6
call fcn.0040e9e1
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 4]
push eax
push 0x28
push dword [ebp - 0x18]
mov eax, 0x19
call fcn.0040e9f3
cmp dword [ebp - 0x1c], esp
je 0x4062c3
push 6
call fcn.0040e9e1
add esp, 4
test eax, eax
je 0x40647d
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push str.SeDebugPrivilege
push 0
mov eax, 0x1a
call fcn.0040e9f3
cmp dword [ebp - 0x14], esp
je 0x4062f7
push 6
call fcn.0040e9e1
add esp, 4
test eax, eax
je 0x406430
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
mov eax, 0x1b
call fcn.0040e9f3
cmp dword [ebp - 0x14], esp
je 0x406377
push 6
call fcn.0040e9e1
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
mov eax, 0x1c
call fcn.0040e9f3
cmp dword [ebp - 0x1c], esp
je 0x4063b0
push 6
call fcn.0040e9e1
add esp, 4
test eax, eax
je 0x406405
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
mov eax, 7
call fcn.0040e9f3
cmp dword [ebp - 0x14], esp
je 0x4063da
push 6
call fcn.0040e9e1
add esp, 4
mov eax, str.EndbleDebugPriv___Win
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403357
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4063fb
push ebx
call fcn.0040e9db
add esp, 4
mov eax, 1
jmp 0x4064a8
mov eax, str.AdjustTokenPrivileges___Error
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403357
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406426
push ebx
call fcn.0040e9db
add esp, 4
mov eax, 0
jmp 0x4064a8
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
mov eax, 7
call fcn.0040e9f3
cmp dword [ebp - 0x14], esp
je 0x406452
push 6
call fcn.0040e9e1
add esp, 4
mov eax, str.LookupPrivilegeValue___Error
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403357
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406473
push ebx
call fcn.0040e9db
add esp, 4
mov eax, 0
jmp 0x4064a8
mov eax, str.OpenProcessToken___Error
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403357
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40649e
push ebx
call fcn.0040e9db
add esp, 4
mov eax, 0
jmp 0x4064a8
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.0040e9db
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0040e9db
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret