Function at 0x14006fc50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov r12, r8
mov r15, qword [0x14011d510]
test r15, r15
je 0x14006ff5f
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x50], xmm0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call fcn.140079fc0
xor r14d, r14d
mov ebx, r14d
lea rax, [rbp - 0x80]
mov rsi, r15
sub rsi, rax
nop dword [rax + rax]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x5c], xmm0
mov dword [rsp + 0x6c], r14d
lea rdi, [rbp - 0x80]
add rdi, rbx
lea rax, [rdi + rsi]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov edx, 0x80002048
mov rcx, qword [0x14011d5c0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14006ff5f
movzx eax, byte [rsp + 0x5c]
mov byte [rdi], al
inc rbx
cmp rbx, 0x40
jb 0x14006fcc0
mov eax, 0x5a4d
cmp word [rbp - 0x80], ax
jne 0x14006ff5f
movsxd rsi, dword [rbp - 0x44]
add rsi, r15
mov rbx, r14
lea rax, [rbp - 0x40]
sub rsi, rax
nop word [rax + rax]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x5c], xmm0
mov dword [rsp + 0x6c], r14d
lea rdi, [rbp - 0x40]
add rdi, rbx
lea rax, [rdi + rsi]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov edx, 0x80002048
mov rcx, qword [0x14011d5c0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14006ff5f
movzx eax, byte [rsp + 0x5c]
mov byte [rdi], al
inc rbx
cmp rbx, 0x108
jb 0x14006fd70
cmp dword [rbp - 0x40], 0x4550
jne 0x14006ff5f
mov ebx, dword [rbp + 0x48]
test ebx, ebx
je 0x14006ff5f
mov eax, dword [rbp + 0x4c]
test eax, eax
je 0x14006ff5f
mov esi, eax
mov qword [rsp + 0x78], rax
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x70], rbx
lea rax, [rbx + r15]
mov qword [rbp + 0x128], rax
mov r9d, esi
mov r8, rdi
mov rdx, rax
call fcn.14006f560
test al, al
je 0x14006ff4e
mov r14, rdi
sub r14, rbx
mov r13d, dword [rdi + 0x20]
add r13, r14
mov eax, dword [rdi + 0x24]
add rax, r14
mov qword [rbp + 0x118], rax
mov eax, dword [rdi + 0x1c]
add rax, r14
mov qword [rbp + 0x110], rax
xor eax, eax
mov ebx, eax
cmp dword [rdi + 0x18], eax
jbe 0x14006ff4e
nop word [rax + rax]
mov esi, ebx
mov edx, dword [r13 + rsi*4]
add rdx, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xf
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14006fec4
lea rcx, [rsp + 0x40]
call fcn.14000b760
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14006fee7
mov rdx, qword [r12]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call fcn.14008ba54
test eax, eax
je 0x14006ff7c
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006ff3e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ff39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007001f
call fcn.140077488
inc ebx
cmp ebx, dword [rdi + 0x18]
mov eax, 0
jb 0x14006fea0
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x118]
movzx eax, word [rax + rsi*2]
mov rcx, qword [rbp + 0x110]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x14006ffc9
lea rbx, [r15 + rcx]
cmp rbx, qword [rbp + 0x128]
jb 0x14007000c
mov rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x78]
add rax, r15
cmp rbx, rax
ja 0x14007000c
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140070004
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ffff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007001f
call fcn.140077488
mov rax, rbx
jmp 0x14006ff61
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14006ffcb
call fcn.1400870b4
int3