Function at 0x18013c4e0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x570], rbx
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rsi, r9
mov r12d, r8d
mov r14, rdx
mov r15, rcx
xor r13d, r13d
mov ebx, r13d
mov rcx, rdx
call fcn.180139ee0
lea edx, [r13 + 5]
mov rcx, r15
call fcn.18013a8c0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18013c7f8
cmp r12d, 0xffffffff
jne 0x18013c56b
mov rdi, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, r15
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov r12d, eax
mov word [rbp + 0x200], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x202]
call fcn.1800f8b90
test rsi, rsi
je 0x18013c5a9
mov dword [rsp + 0x20], r13d
mov r9d, 0x104
lea r8, [rbp + 0x200]
or edx, 0xffffffff
mov rcx, rsi
call fcn.1800ecbe0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x200]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov ecx, 1
cmovne eax, ecx
mov rdi, qword [rsp + 0x38]
cdqe
mov qword [rsp + 0x40], rax
mov esi, dword [rdi + 0x64]
cmp r12d, 0xfffffffe
je 0x18013c5e5
cmp r12d, esi
jne 0x18013c7c9
test rax, rax
je 0x18013c60b
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x18013c7c9
lea rcx, [rbp + 0x200]
call fcn.1800f9b60
test eax, eax
jne 0x18013c7c9
test r13d, r13d
jne 0x18013c631
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov ebx, 1
mov r8d, ebx
lea rdx, str.SeDebugPrivilege
call fcn.1800f8b70
mov r13d, ebx
jmp 0x18013c636
mov ebx, 1
xor edx, edx
mov r8d, 0x2ac
lea rcx, [rsp + 0x54]
call fcn.1800f8b90
mov dword [rsp + 0x58], esi
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x50], r8d
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x54], eax
mov eax, dword [rdi + 0x60]
mov dword [rsp + 0x5c], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x60], eax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x68], rax
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x70], rcx
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x78], rax
add rax, rcx
mov qword [rbp - 0x80], rax
mov eax, dword [rdi + 0x48]
mov dword [rsp + 0x64], eax
mov eax, dword [rdi + 0x70]
mov dword [rbp - 0x78], eax
mov eax, dword [rdi + 0x78]
mov dword [rbp - 0x74], eax
mov eax, dword [rdi + 0x80]
mov dword [rbp - 0x70], eax
mov eax, dword [rdi + 0x88]
mov dword [rbp - 0x6c], eax
mov edx, dword [rdi + 0x90]
mov dword [rbp - 0x68], edx
mov eax, dword [rdi + 0x98]
mov dword [rbp - 0x64], eax
mov eax, dword [rdi + 0xa0]
mov dword [rbp - 0x60], eax
mov eax, dword [rdi + 0xa8]
mov dword [rbp - 0x5c], eax
mov eax, dword [rdi + 0xb0]
mov dword [rbp - 0x58], eax
mov ecx, dword [rdi + 0xb8]
mov dword [rbp - 0x54], ecx
mov eax, dword [rdi + 0xc0]
mov dword [rbp - 0x50], eax
mov rax, qword [rdi + 0xd0]
mov qword [rbp - 0x48], rax
mov rax, qword [rdi + 0xd8]
mov qword [rbp - 0x40], rax
mov rax, qword [rdi + 0xe0]
mov qword [rbp - 0x38], rax
mov rax, qword [rdi + 0xe8]
mov qword [rbp - 0x30], rax
mov rax, qword [rdi + 0xf0]
mov qword [rbp - 0x28], rax
mov rax, qword [rdi + 0xf8]
mov qword [rbp - 0x20], rax
shr ecx, 0xa
mov dword [rbp - 0x18], ecx
shr edx, 0xa
mov dword [rbp - 0x14], edx
mov rax, qword [r15]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [rax + 0x80]
nop
mov rdx, qword [rsp + 0x30]
cmp dword [rdx - 8], 0
jne 0x18013c7a2
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x18013c780
mov dword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rbp - 0xc]
or edx, 0xffffffff
call fcn.1800ecc30
jmp 0x18013c7b1
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x18013c791
lea rdx, str.System_Idle_Process
jmp 0x18013c7a2
cmp eax, 4
je 0x18013c79b
cmp eax, 8
jne 0x18013c7b1
lea rdx, str.System
mov r8d, 0x103
lea rcx, [rbp - 0xc]
call fcn.1800f8dd0
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.180139ef0
nop
lea rcx, [rsp + 0x30]
call fcn.1800e5c00
mov r8d, dword [rdi]
test r8d, r8d
je 0x18013c7df
add rdi, r8
mov rax, qword [rsp + 0x40]
jne 0x18013c5d3
mov rcx, qword [rsp + 0x38]
call fcn.1800f8dc8
test ebx, ebx
je 0x18013c7f8
mov rdx, r14
mov rcx, r15
call fcn.18013bff0
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1800f98f0
mov rbx, qword [rsp + 0x570]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret