Function at 0x14001b8f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rbp - 9], rax
mov qword [rbp - 0x49], r9
mov r15, rdx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x41], rax
mov r13, qword [0x1400309a0]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001bc49
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14001bc49
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14001bc49
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x14001bc49
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x39], eax
sub ebx, eax
mov ecx, ebx
mov qword [rbp - 0x51], rcx
je 0x14001bc38
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor esi, esi
mov eax, dword [rdx + rax]
cmp dword [0x140030a9c], eax
jle 0x14001ba93
lea rcx, [0x140030a9c]
call fcn.14001e6a8
cmp dword [0x140030a9c], 0xffffffff
jne 0x14001ba8f
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
lea ecx, [rsi + 0x20]
call fcn.14001e288
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x21], 0x15
mov qword [rbp - 0x19], 0x1f
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x14002a450]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14002a454]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], sil
lea r8, [rbp - 0x31]
mov rdx, qword [0x1400309b8]
mov rcx, r13
call fcn.1400181f0
mov qword [0x140030b00], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x14001ba83
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ba7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ba7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e280
nop
lea rcx, [0x140030a9c]
call fcn.14001e63c
mov rcx, qword [rbp - 0x51]
cmp qword [0x140030b00], 0
je 0x14001bc38
mov qword [rbp - 0x59], rsi
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.14001ade0
test al, al
je 0x14001bc38
mov r12, qword [rbp - 0x59]
test r12, r12
je 0x14001bc38
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14001bb1b
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x14001bb0d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14001baf0
mov esi, dword [rbp - 0x39]
mov rbx, r12
sub rbx, rsi
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.14001c560
mov rdx, rbx
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.14001bc80
mov rdx, rbx
mov rcx, r14
call fcn.14001bd80
test al, al
je 0x14001bc49
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.14001c6b0
mov rdx, rax
mov rcx, r13
call fcn.14001be30
test al, al
je 0x14001bc1a
lea rax, [rsi + r14]
test rax, rax
je 0x14001bc1a
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x31], 0x33
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], r12
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x39], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 0x28]
lea r8, [rbp - 0x31]
mov edx, 0x80862007
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001bc1a
mov r8d, dword [rdi + 0x28]
add r8, rbx
mov dword [rbp - 0x39], esi
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.14001c140
test al, al
je 0x14001bc1a
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x14001bc04
mov ecx, dword [rbp - 0x39]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x14001bc4b
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.1400180c0
jmp 0x14001bc49
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14001e260
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret