Function at 0x14004fbf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], 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 [0x140073040]
xor rax, rsp
mov qword [rbp - 9], rax
mov qword [rbp - 0x49], r9
mov r15, rdx
mov r13, rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x41], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004ff4d
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14004ff4d
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14004ff4d
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 0x14004ff4d
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 0x14004ff3c
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor esi, esi
mov eax, dword [rdx + rax]
cmp dword [0x140073be4], eax
jle 0x14004fd8f
lea rcx, [0x140073be4]
call fcn.1400592dc
cmp dword [0x140073be4], 0xffffffff
jne 0x14004fd8b
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
lea ecx, [rsi + 0x20]
call fcn.140059594
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 [0x140069d20]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140069d24]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], sil
lea r8, [rbp - 0x31]
mov rdx, qword [0x140073a68]
mov rcx, r13
call fcn.14004bcc0
mov qword [0x140073c48], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x14004fd7f
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fd79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fd79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400591bc
nop
lea rcx, [0x140073be4]
call fcn.140059270
mov rcx, qword [rbp - 0x51]
cmp qword [0x140073c48], 0
je 0x14004ff3c
mov qword [rbp - 0x59], rsi
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x59]
mov rcx, r13
call fcn.14004ec00
test al, al
je 0x14004ff3c
mov r12, qword [rbp - 0x59]
test r12, r12
je 0x14004ff3c
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 0x14004fe1b
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x14004fe0d
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 0x14004fdf0
mov r15d, dword [rbp - 0x39]
mov rsi, r12
sub rsi, r15
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140050ca0
mov rdx, rbx
mov rcx, rax
call fcn.14004ff80
mov rdx, rsi
mov rcx, r14
call fcn.140050080
test al, al
je 0x14004ff4d
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140050df0
mov rdx, rax
mov rcx, r13
call fcn.140050130
test al, al
je 0x14004ff1e
lea rax, [r15 + r14]
test rax, rax
je 0x14004ff1e
xor ebx, ebx
mov qword [rbp - 0x29], rbx
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], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x28]
lea r8, [rbp - 0x31]
mov edx, 0x80862007
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004ff1e
mov r8d, dword [rdi + 0x28]
add r8, rsi
mov dword [rbp - 0x39], ebx
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.140050440
test al, al
je 0x14004ff1e
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x14004ff08
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 0x14004ff4f
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.14004bb90
jmp 0x14004ff4d
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.140058e30
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret