Function at 0x140007ed0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x14001b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r8
mov r15, rdx
mov r12, rcx
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000825e
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14000825e
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14000825e
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 rbp, rax
test rax, rax
je 0x14000825e
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov r13d, ebx
je 0x14000824d
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor esi, esi
mov eax, dword [rcx + rax]
cmp dword [0x14001bb2c], eax
jle 0x140008076
lea rcx, [0x14001bb2c]
call fcn.14000ad54
cmp dword [0x14001bb2c], 0xffffffff
jne 0x140008076
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
lea ecx, [rsi + 0x20]
call fcn.14000a9c0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x15
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [0x14000d968]
movups xmmword [rax], xmm0
mov ecx, dword [0x14000d978]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14000d97c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], sil
lea r8, [rsp + 0x40]
mov rdx, qword [0x14001ba88]
mov rcx, r12
call fcn.1400038c0
mov qword [0x14001bb90], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000806a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008064
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aa04
nop
lea rcx, [0x14001bb2c]
call fcn.14000ace8
cmp qword [0x14001bb90], 0
je 0x14000824d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.140006640
test al, al
je 0x14000824d
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x14000824d
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140008100
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x1400080f0
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400080d3
xor eax, eax
mov ebx, eax
cmp dword [rdi + 0x54], 0
jbe 0x140008165
movabs rsi, 0x8080808080808081
nop dword [rax]
nop word [rax + rax]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, rax
mov rax, rsi
mul r8
shr rdx, 7
imul rcx, rdx, 0xff
sub r8, rcx
mov byte [rsp + 0x78], r8b
movsxd rdx, ebx
add rdx, r14
mov r9d, 1
lea r8, [rsp + 0x78]
mov rcx, r12
call fcn.140003570
inc ebx
cmp ebx, dword [rdi + 0x54]
jb 0x140008120
mov r15d, dword [rsp + 0x30]
mov rsi, r14
sub rsi, r15
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.1400096a0
mov rdx, rbx
mov rcx, rax
call fcn.140008290
mov rdx, rsi
mov rcx, rbp
call fcn.140008390
test al, al
je 0x14000825e
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.1400097f0
mov rdx, rax
mov rcx, r12
call fcn.140008440
test al, al
je 0x14000822f
lea r8, [r15 + rbp]
mov r9, r13
mov rdx, r14
mov rcx, r12
call fcn.140003570
test al, al
je 0x14000822f
mov r8d, dword [rdi + 0x28]
add r8, rsi
xor eax, eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, r14
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140008810
test al, al
je 0x14000822f
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140008219
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x140008260
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r12
call fcn.140003790
jmp 0x14000825e
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000a9a0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret