Function at 0x1400500f0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400e7380]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov ecx, 0x218
call fcn.14007ef7c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
mov dword [rcx], esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rsi
lea edx, [rsi + 2]
call fcn.14007ce08
nop
lea rbx, [rdi + 0x60]
mov qword [rsp + 0x40], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea ecx, [rsi + 0x48]
call fcn.14007ef7c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rcx, [rdi + 0x70]
call fcn.14005ae70
nop
lea rbp, [rdi + 0x128]
mov rcx, rbp
call fcn.140058360
nop
mov qword [rdi + 0x220], rsi
mov dword [rdi + 0x1dc], 0x4cbebc20
mov dword [rdi + 0x1cc], 0x4cbebc20
mov dword [rdi + 0x1c8], 0x4cbebc20
mov dword [rdi + 0x1c4], 0x4cbebc20
mov dword [rdi + 0x1c0], 0x4cbebc20
mov dword [rdi + 0x1bc], 0x4cbebc20
mov dword [rdi + 0x1b8], 0x4cbebc20
mov dword [rdi + 0x1d8], 0x4cbebc20
mov dword [rdi + 0x1d4], 0x4cbebc20
mov dword [rdi + 0x1d0], 0x4cbebc20
mov qword [rdi + 0x1f8], rsi
mov qword [rdi + 0x1f0], rsi
mov qword [rdi + 0x1e8], rsi
mov qword [rdi + 0x1e0], rsi
mov qword [rdi + 0x218], rsi
mov qword [rdi + 0x210], rsi
mov qword [rdi + 0x208], rsi
mov qword [rdi + 0x200], rsi
lea rcx, [rdi + 0x228]
call fcn.14004fd50
nop
lea rcx, [rdi + 0x268]
call fcn.14005dbc0
nop
mov word [rdi + 0x310], 1
mov qword [rdi + 0x318], rsi
mov dword [rdi + 0x320], 0xffffffff
xorps xmm0, xmm0
movups xmmword [rdi + 0x328], xmm0
mov qword [rdi + 0x338], rsi
mov qword [rdi + 0x340], 7
mov word [rdi + 0x328], si
movups xmmword [rdi + 0x348], xmm0
mov qword [rdi + 0x358], rsi
mov qword [rdi + 0x360], 7
mov word [rdi + 0x348], si
movups xmmword [rdi + 0x368], xmm0
mov qword [rdi + 0x378], rsi
mov qword [rdi + 0x380], 7
mov word [rdi + 0x368], si
lea rsi, [rdi + 0x388]
movups xmmword [rsi], xmm0
lea r13, [rsi + 0x10]
xor ebx, ebx
mov qword [r13], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
movups xmmword [rdi + 0x3a8], xmm0
mov qword [rdi + 0x3b8], rbx
mov qword [rdi + 0x3c0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rdi + 0x3a8], bl
mov qword [0x1400e9e80], rdi
mov rcx, rdi
call fcn.140068050
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x1400e9798]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
mov edx, 0x28
call rbx
test eax, eax
je 0x1400503d0
mov rax, qword [0x1400e97a0]
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call rax
xor ebx, ebx
test eax, eax
je 0x1400503c3
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [0x1400e97a8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400503d2
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rdi + 0x318], rax
cmp qword [rsi + 0x18], 7
jb 0x14005040e
jbe 0x1400503eb
mov rsi, qword [rsi]
mov qword [r13], 7
mov r8d, SafeArrayDestroy
lea rdx, str.NOT_SET
mov rcx, rsi
call fcn.1400a34f0
mov word [rsi + 0xe], bx
jmp 0x140050428
lea r9, str.NOT_SET
movzx r8d, byte [rsp + 0x30]
mov edx, 7
mov rcx, rsi
call fcn.140006d80
lea r8, [rdi + 0x348]
lea rdx, [rdi + 0x328]
lea rcx, [rdi + 0x70]
call fcn.14005cf50
lea rdx, [rdi + 0x70]
mov rcx, rbp
call fcn.14005ab40
mov qword [rdi + 0x220], rbp
mov rdx, rbp
lea rcx, [rdi + 0x268]
call fcn.14005dbb0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007f430
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret