Function at 0x14002d6e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rsi
push r15
sub rsp, 0xa0
xor r15d, r15d
mov ebx, edx
mov qword [rsp + 0x50], r15
mov rsi, rcx
test rcx, rcx
je 0x14002da2f
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14002da50
test eax, eax
je 0x14002da2f
mov qword [rsp + 0x98], rbp
mov eax, ebx
mov qword [rsp + 0x90], rdi
and eax, 3
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 1
sub eax, 2
je 0x14002d777
cmp eax, 1
je 0x14002d770
mov ecx, 0x80000000
jmp 0x14002d77c
mov ecx, 0xc0000000
jmp 0x14002d77c
mov ecx, 0x40000000
mov r8d, dword [rsp + 0xd0]
mov r14d, ecx
bts r14d, 0x10
mov eax, ebx
and eax, 0x100
mov r13d, 0x6000080
mov eax, r8d
cmove r14d, ecx
bt ebx, 8
mov ecx, 0x2000080
mov dword [rsp + 0x40], r14d
cmovae r13d, ecx
mov ecx, r8d
shr ecx, 9
and ecx, 1
mov edx, ecx
or edx, 2
and eax, 0x400
mov eax, ebx
cmove edx, ecx
mov r12d, edx
or r12d, 4
and r8d, 0x800
cmove r12d, edx
and eax, 0x48
cmp eax, 8
je 0x14002d80a
cmp eax, 0x48
je 0x14002d7f0
mov ebp, 3
jmp 0x14002d80f
lea rax, [rsp + 0xd8]
mov ebp, 1
test dword [rax], 0x200
jne 0x14002d80f
mov r13d, ebp
jmp 0x14002d80f
mov ebp, 2
mov rdi, qword [rsp + 0x50]
lea r9, [rsp + 0x58]
mov eax, 5
mov qword [rsp + 0x30], r15
and bl, 0x28
mov dword [rsp + 0x28], r13d
cmp bl, 0x20
mov r8d, r12d
mov edx, r14d
mov rcx, rdi
cmove ebp, eax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d87b
test r12d, r12d
je 0x14002d88b
lea r12d, [rax + 8]
mov qword [rsp + 0x30], r15
mov r8d, r12d
mov dword [rsp + 0x28], r13d
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], ebp
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14002d9d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14002d9d3
mov rcx, qword [0x140308970]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140308970]
mov ebx, dword [0x140308980]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x14002d8d4
mov rdi, qword [rsp + 0x50]
mov rbx, 0xffffffffffffffff
jmp 0x14002d9e9
mov ecx, 0x18
call fcn.1402122d0
mov r15, rax
mov rbx, 0xffffffffffffffff
test rax, rax
jne 0x14002d8f7
mov rdi, qword [rsp + 0x50]
jmp 0x14002d9e9
mov dword [rax], 1
mov rdi, rbx
mov qword [rax + 0x10], 0
nop dword [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14002d910
lea eax, [rdi + 1]
lea rcx, [rax*2 + 0x10]
mov ebp, eax
cmp rcx, 0x60000000
ja 0x14002d9ad
call fcn.1402122d0
mov r14, rax
test rax, rax
je 0x14002d9ad
add edi, edi
mov dword [r14 + 8], r13d
mov r8d, ebp
mov dword [r14 + 4], r12d
mov rdx, rsi
lea ecx, [rdi + 2]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x10]
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
call fcn.14021fac8
mov rcx, qword [0x140308960]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], 0
lea r9d, [rdi + 0x12]
mov qword [rsp + 0x30], rax
mov r8, r14
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], 4
mov edx, 0x8dc8e0c0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r14
test eax, eax
jne 0x14002d9bc
call fcn.1402122e0
mov rcx, r15
call fcn.1402122e0
mov rdi, qword [rsp + 0x50]
jmp 0x14002d9e9
call fcn.1402122e0
mov eax, dword [rsp + 0x44]
mov rbx, r15
mov rdi, qword [rsp + 0x50]
mov qword [r15 + 8], rax
jmp 0x14002d9e9
test rbx, rbx
je 0x14002d9e9
cmp rbx, 0xffffffffffffffff
je 0x14002d9e9
mov rcx, rbx
call fcn.14002ddf0
mov rbx, rax
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x98]
cmp rdi, rsi
je 0x14002da18
test rdi, rdi
je 0x14002da18
mov rcx, rdi
call fcn.1402122e0
mov rdi, qword [rsp + 0x90]
mov rax, rbx
add rsp, 0xa0
pop r15
pop rsi
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0xa0
pop r15
pop rsi
pop rbx
ret