Function at 0x40c010
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x46a080]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push eax
push 1
push 0x28
mov esi, edx
movaps xmmword [esp + 0x6c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40c113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 1
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.0040da20
lea eax, [esp + 0x18]
add esp, 8
cmp esi, eax
je 0x40c0d4
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x40c0a7
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c09d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c261
mov eax, edx
push ecx
push eax
call fcn.0042d9cb
add esp, 8
movups xmm0, xmmword [esp + 0x10]
mov eax, 7
xor ecx, ecx
mov word [esp + 0x10], cx
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
jmp 0x40c0d8
mov eax, dword [esp + 0x24]
cmp eax, 7
jbe 0x40c24e
mov edx, dword [esp + 0x10]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c244
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c261
jmp 0x40c244
lea eax, [esp + 0x64]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0xc], 0
mov edi, eax
je 0x40c16e
push 0
push 0
push 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 1
push eax
push 0
push dword [esp + 0x70]
mov dword [esp + 0x84], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x40c196
test edi, edi
jne 0x40c196
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042d98d
mov esp, ebp
pop ebp
ret
push 0
push 1
mov edx, edi
lea ecx, [esp + 0x38]
call fcn.0040da20
lea eax, [esp + 0x38]
add esp, 8
cmp esi, eax
je 0x40c216
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x40c1e9
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c1df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c266
mov eax, edx
push ecx
push eax
call fcn.0042d9cb
add esp, 8
movups xmm0, xmmword [esp + 0x30]
mov eax, 7
xor ecx, ecx
mov word [esp + 0x30], cx
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x10], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
jmp 0x40c21a
mov eax, dword [esp + 0x44]
cmp eax, 7
jbe 0x40c24e
mov edx, dword [esp + 0x30]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c244
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c266
push ecx
push edx
call fcn.0042d9cb
add esp, 8
mov ecx, dword [esp + 0x7c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0042d98d
mov esp, ebp
pop ebp
ret
call fcn.004380a6
call fcn.004380a6
int3