Function at 0x14001d2e4
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
xor r12d, r12d
mov rdi, rcx
cmp dword [rcx + 0x10], r12d
je 0x14001d612
lea rcx, str.SeDebugPrivilege
call fcn.14001c34c
mov rax, qword [rdi + 0x70]
mov r8, qword [rdi + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x80]
lea rdx, str.DevicePhysicalMemory
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x88]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r8
call r8
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xor eax, eax
mov dword [rsp + 0x60], gethostbyaddr
lea ebx, [rax + 4]
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x78], 0x40
mov edx, ebx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
call qword [rsp + 0x40]
cmp eax, r12d
jne 0x14001d612
lea rcx, [rsp + 0x30]
call fcn.14001cc44
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov edx, ebx
mov r9d, eax
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, str.DeviceTcp
mov rcx, rdi
mov qword [rsp + 0x58], rax
call fcn.14001cf74
lea rdx, str.DeviceUdp
mov rcx, rdi
mov r14, rax
call fcn.14001cf74
cmp r14, r12
mov r13, rax
je 0x14001d5fc
cmp rax, r12
je 0x14001d5fc
mov rbp, qword [rdi + 0x70]
lea rcx, [r12 - 1]
lea r15d, [r12 + 0x20]
mov rax, r15
mov esi, 0x4000
mul rsi
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea ecx, [r12 + 0x10]
xor r9d, r9d
mov rdx, rax
mov r8d, 0x80000
mov rbx, rax
call rbp
cmp eax, 0xc0000004
jne 0x14001d497
or rdi, 0xffffffffffffffff
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add esi, esi
mov rax, r15
mul rsi
cmovo rax, rdi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
xor r9d, r9d
mov r8d, esi
lea ecx, [r9 + 0x10]
shl r8d, 5
mov rdx, rax
mov rbx, rax
call rbp
cmp eax, 0xc0000004
je 0x14001d456
mov rdi, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rbx], r12d
mov ebp, r12d
mov r11d, eax
mov r15d, 1
jbe 0x14001d4ce
lea rdx, [rbx + 0xe]
movzx ecx, word [rdx - 6]
cmp ecx, r11d
jne 0x14001d4c3
movzx eax, word [rdx]
cmp rax, r14
je 0x14001d4d1
add ebp, r15d
add rdx, 0x18
cmp ebp, dword [rbx]
jb 0x14001d4b2
mov ebp, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rbx], r12d
mov esi, r12d
jbe 0x14001d4fe
lea rdx, [rbx + 0xe]
movzx ecx, word [rdx - 6]
cmp ecx, eax
jne 0x14001d4f3
movzx ecx, word [rdx]
cmp rcx, r13
je 0x14001d501
add esi, r15d
add rdx, 0x18
cmp esi, dword [rbx]
jb 0x14001d4e3
mov esi, r12d
cmp ebp, r12d
je 0x14001d578
cmp esi, r12d
je 0x14001d578
mov eax, ebp
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
lea r8, [rax + rax*2]
mov r12d, r15d
mov r8, qword [rbx + r8*8 + 0x10]
call fcn.14001e4cc
mov r15d, 0xb8
lea rcx, [rsp + 0x160]
mov rdx, rax
mov r8, r15
call sub.msvcrt.dll_memcpy
mov r11d, esi
lea rdx, [rsp + 0x220]
lea r8, [r11 + r11*2]
lea rcx, [rsp + 0x30]
mov r8, qword [rbx + r8*8 + 0x10]
call fcn.14001e4cc
lea rcx, [rsp + 0xa0]
mov r8, r15
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov r15d, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x14001d5f4
mov eax, ebp
lea rdx, [rsp + 0x30]
mov r8, rbx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x168]
mov dword [rsp + 0x28], r15d
mov r9b, byte [rbx + rcx*8 + 0xc]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14001d004
mov rax, qword [rsp + 0xa8]
mov r11d, esi
lea rcx, [r11 + r11*2]
lea rdx, [rsp + 0x30]
mov r8, rbx
mov r9b, byte [rbx + rcx*8 + 0xc]
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call fcn.14001d004
mov dword [rdi + 0xa8], r15d
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2e0]
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