Function at 0x1400698a0
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, 0xc0
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov qword [rbp - 0x79], rcx
mov qword [rbp - 0x29], rdx
xor r14d, r14d
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140069e96
movsxd r13, dword [rcx + 0x3c]
add r13, rcx
mov qword [rbp - 0x39], r13
cmp dword [r13], 0x4550
jne 0x140069e96
test r13, r13
je 0x140069e96
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x140069e96
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
mov qword [rbp - 0x69], rax
test rax, rax
je 0x140069e2d
movzx eax, word [r13 + 0x14]
mov eax, dword [rax + r13 + 0x24]
mov dword [rbp - 0x71], eax
sub ebx, eax
mov dword [rsp + 0x38], ebx
jne 0x140069964
mov qword [rsp + 0x30], r14
jmp 0x140069e0d
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400b8be4], eax
jle 0x140069a2e
lea rcx, [0x1400b8be4]
call fcn.14006a410
cmp dword [0x1400b8be4], 0xffffffff
jne 0x140069a2e
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
mov r8d, 0x15
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x61]
call fcn.140046850
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x140083168]
mov rdi, qword [rbp - 0x79]
mov rcx, rdi
call fcn.1400658c0
mov qword [0x1400b8c48], rax
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x140069a20
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069a1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069a1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a360
nop
lea rcx, [0x1400b8be4]
call fcn.14006a3a4
jmp 0x140069a32
mov rdi, qword [rbp - 0x79]
mov qword [rsp + 0x30], r14
cmp qword [0x1400b8c48], 0
je 0x140069e0d
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140067190
test al, al
jne 0x140069a65
mov qword [rsp + 0x30], r14
jmp 0x140069e0d
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140069e0d
mov r8d, dword [r13 + 0x54]
mov rdx, qword [r15]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, r14d
mov qword [rsp + 0x30], rsi
xor edx, edx
cmp dx, word [r13 + 6]
jae 0x140069ade
add rbx, r13
mov qword [rbp - 0x39], r13
mov qword [rsp + 0x30], rsi
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x140069acd
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, qword [r15]
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x140069ab0
xor edx, edx
mov eax, dword [rbp - 0x71]
mov r14, rsi
sub r14, rax
mov qword [rbp - 0x41], r14
mov rsi, r14
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x140069bc7
movsxd rax, dword [r12 + 0x3c]
add rax, r12
cmp dword [rax], 0x4550
jne 0x140069bc7
test rax, rax
je 0x140069bc7
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r11, rdx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x140069b40
jmp 0x140069bd0
lea rbx, [r12 + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x19]
cmp rbx, rdi
jae 0x140069bc1
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140069bc1
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x61], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x59], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x51], eax
cmp r10, r11
je 0x140069b9e
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x19]
add r10, 0x18
mov qword [rbp - 0x19], r10
jmp 0x140069bb2
lea r8, [rbp - 0x61]
mov rdx, r10
lea rcx, [rbp - 0x21]
call fcn.140068b60
mov r10, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x11]
cmp rbx, rdi
jb 0x140069b56
mov rbx, qword [rbp - 0x21]
jmp 0x140069bdf
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x140069c41
lea r8, [rbx + 0x10]
mov edi, 0xfff
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x140069c30
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
shr ax, 0xc
and r9w, di
cmp ax, 0xa
jne 0x140069c29
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], rsi
inc edx
cmp edx, dword [r8]
jb 0x140069c00
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x140069bf0
mov r14, qword [rbp - 0x41]
test rbx, rbx
je 0x140069c9c
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 0x140069c94
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069c94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14006a360
mov rdx, r12
lea rcx, [rbp - 0x61]
call fcn.1400680e0
mov r12, rax
mov qword [rbp - 0x31], rax
mov rsi, qword [rax]
mov r13, qword [rax + 8]
cmp rsi, r13
je 0x140069d39
nop dword [rax + rax]
mov rcx, rsi
call fcn.14006a0b0
mov rdi, rax
test rax, rax
je 0x140069dfe
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
cmp rbx, r14
je 0x140069d2c
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rbp - 0x79]
call fcn.1400658c0
mov rcx, rax
test rax, rax
jne 0x140069d1c
mov rdx, qword [0x140083168]
cmp rdi, rdx
je 0x140069d1c
mov r8, rbx
mov rcx, qword [rbp - 0x79]
call fcn.1400658c0
mov rcx, rax
test rax, rax
je 0x140069dfe
mov rax, qword [rbx + 0x20]
mov qword [rax], rcx
add rbx, 0x28
cmp rbx, r14
jne 0x140069ce1
add rsi, 0x38
cmp rsi, r13
jne 0x140069cc0
mov r14, qword [rbp - 0x41]
mov rbx, qword [rsp + 0x30]
mov rcx, r12
call fcn.140068460
mov qword [rsp + 0x30], rbx
mov r9d, dword [rsp + 0x38]
mov r8d, dword [rbp - 0x71]
mov r12, qword [rbp - 0x69]
add r8, r12
mov rdx, rbx
mov rdi, qword [rbp - 0x79]
mov rcx, rdi
call fcn.140065570
test al, al
je 0x140069e0a
mov rax, qword [rbp - 0x39]
mov r8d, dword [rax + 0x28]
add r8, r14
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140069eb0
test al, al
je 0x140069e0d
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140069df9
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140069de9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140069e9c
mov rcx, r8
call fcn.14006a360
mov qword [r15], r14
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], r14
mov rax, rbx
jmp 0x140069e6f
mov rcx, r12
call fcn.140068460
mov r12, qword [rbp - 0x69]
xor r14d, r14d
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x79]
call fcn.1400657b0
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140069e6d
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140069e5d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140069e9c
mov rcx, r8
call fcn.14006a360
mov qword [r15], r14
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], r14
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14006a2f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdx + 0x10]
jmp 0x140069e39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3