Function at 0x14007f9a0
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, 0xe0
mov rax, qword [0x1401eb7c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x61], rax
xor r14d, r14d
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x19], r14
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14007fd98
movsxd r13, dword [rdx + 0x3c]
add r13, rdx
cmp dword [r13], 0x4550
jne 0x14007fd98
test r13, r13
je 0x14007fd98
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14007fd98
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14007fd98
movzx ecx, word [r13 + 0x14]
mov r15d, dword [rcx + r13 + 0x24]
sub ebx, r15d
mov qword [rsp + 0x38], r14
mov eax, ebx
mov qword [rbp - 0x69], rax
lea r8, [rsp + 0x38]
mov edx, ebx
mov rcx, rdi
call fcn.14007f600
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14007fd78
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, r14d
xor edx, edx
cmp dx, word [r13 + 6]
jae 0x14007fade
add rbx, r13
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x14007facd
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14007fab0
xor edx, edx
mov rdi, qword [rsp + 0x30]
mov r14, rdi
mov qword [rbp - 0x79], rdi
mov qword [rbp - 0x71], r15
sub rdi, r15
mov qword [rsp + 0x30], rdi
mov rsi, rdi
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x14007fbdd
movsxd rax, dword [r12 + 0x3c]
add rax, r12
cmp dword [rax], 0x4550
jne 0x14007fbdd
test rax, rax
je 0x14007fbdd
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r11, rdx
mov qword [rbp - 0x39], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14007fb4b
jmp 0x14007fbe6
lea rbx, [r12 + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x41]
cmp rbx, rdi
jae 0x14007fbd2
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14007fbd2
mov eax, dword [rbx]
add rax, r12
mov qword [rsp + 0x48], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x50], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rsp + 0x58], eax
cmp r10, r11
je 0x14007fbae
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r10], xmm0
movsd xmm1, qword [rsp + 0x58]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x41]
add r10, 0x18
mov qword [rbp - 0x41], r10
jmp 0x14007fbc3
lea r8, [rsp + 0x48]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.140080bf0
mov r10, qword [rbp - 0x41]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x39]
cmp rbx, rdi
jb 0x14007fb61
mov rbx, qword [rbp - 0x49]
mov rdi, qword [rsp + 0x30]
jmp 0x14007fbf5
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x14007fc68
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r14d, 0xa000
xor r15d, r15d
nop dword [rax]
mov edx, r15d
cmp dword [r8], r15d
jbe 0x14007fc4e
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r14w
jne 0x14007fc47
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x14007fc20
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14007fc10
mov r14, qword [rbp - 0x79]
mov rdi, qword [rsp + 0x30]
mov r15, qword [rbp - 0x71]
test rbx, rbx
je 0x14007fcc3
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14007fcbb
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007fcbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400e6550
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.140080500
mov rdx, rax
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14007fdd0
test al, al
je 0x14007fd7b
lea r8, [r15 + r12]
mov r15, qword [rbp - 0x69]
mov r9, r15
mov rdx, r14
mov rcx, rsi
call fcn.14007c0f0
test al, al
je 0x14007fd7b
mov ebx, dword [r13 + 0x28]
add rbx, rdi
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8, r14
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140056440
test al, al
je 0x14007fd7b
mov dword [rsp + 0x30], 0
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400800e0
test al, al
je 0x14007fd7b
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14007fd62
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x14007fd9a
mov rsi, rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x59]
mov rcx, rsi
call fcn.14007c550
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400e6530
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret