Function at 0x1400785c0
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, 0xb0
mov rax, qword [0x1400bb040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov r12, rcx
mov qword [rbp - 0x29], rdx
xor edi, edi
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140078b27
movsxd r14, dword [rcx + 0x3c]
add r14, rcx
mov qword [rbp - 0x41], r14
cmp dword [r14], 0x4550
jne 0x140078b27
mov eax, 0x20b
cmp word [r14 + 0x18], ax
jne 0x140078b27
mov ebx, dword [r14 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140078abe
movzx eax, word [r14 + 0x14]
mov eax, dword [rax + r14 + 0x24]
mov dword [rbp - 0x75], eax
sub ebx, eax
mov dword [rbp - 0x79], ebx
je 0x140078a9e
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401405d4], eax
jle 0x140078731
lea rcx, [0x1401405d4]
call fcn.14007b6c8
cmp dword [0x1401405d4], 0xffffffff
jne 0x140078731
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
lea r8d, [rdi + 0x15]
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x61]
call fcn.1400676e0
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x14013fe58]
mov rcx, r12
call fcn.140075e20
mov qword [0x140140638], rax
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x140078725
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007871f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007871f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ba50
nop
lea rcx, [0x1401405d4]
call fcn.14007b65c
cmp qword [0x140140638], 0
je 0x140078a9e
mov qword [rbp - 0x71], rdi
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x71]
mov rcx, r12
call fcn.140077660
test al, al
je 0x140078a9e
mov rsi, qword [rbp - 0x71]
test rsi, rsi
je 0x140078aa1
mov r8d, dword [r14 + 0x54]
mov rdx, qword [r15]
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r14 + 0x14]
add rbx, 0x24
xor edx, edx
cmp dx, word [r14 + 6]
jae 0x1400787be
add rbx, r14
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x1400787ad
mov ecx, dword [rbx]
add rcx, r13
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 [r14 + 6]
cmp edi, eax
jl 0x140078790
xor edx, edx
mov eax, dword [rbp - 0x75]
mov rcx, rsi
sub rcx, rax
mov qword [rbp - 0x31], rcx
mov rsi, rcx
sub rsi, qword [r14 + 0x30]
mov eax, 0x5a4d
cmp word [r13], ax
jne 0x1400788a7
movsxd rax, dword [r13 + 0x3c]
cmp dword [rax + r13], 0x4550
jne 0x1400788a7
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r8, rdx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + r13 + 0xb0]
test ecx, ecx
jne 0x140078817
mov rbx, rdx
jmp 0x1400788ad
lea rbx, [rcx + r13]
mov edi, dword [rax + r13 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x140078897
mov rdx, qword [rbp - 0x19]
nop
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140078892
mov eax, dword [rbx]
add rax, r13
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 rdx, r8
je 0x140078872
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x19], rdx
jmp 0x140078887
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x21]
call fcn.1400797e0
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x140078830
movdqu xmm1, xmmword [rbp - 0x21]
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp - 0x51], xmm0
mov rbx, qword [rbp - 0x51]
jmp 0x1400788ad
xorps xmm1, xmm1
mov rbx, rdx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x140078921
lea r8, [r10 + 0x10]
mov edi, 0xfff
xor r14d, r14d
nop dword [rax]
mov edx, r14d
cmp dword [r8], r14d
jbe 0x140078910
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 0x140078909
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], rsi
inc edx
cmp edx, dword [r8]
jb 0x1400788e0
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x1400788d0
mov r14, qword [rbp - 0x41]
test r10, r10
je 0x14007897c
sub rbx, r10
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r10
cmp rdx, 0x1000
jb 0x140078974
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140078974
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.14007ba50
mov rdx, r13
lea rcx, [rbp - 0x61]
call fcn.1400790d0
mov qword [rbp - 0x69], rax
mov rsi, qword [rax]
mov r13, qword [rax + 8]
cmp rsi, r13
je 0x140078a1b
nop dword [rax]
mov rcx, rsi
call fcn.14007b3c0
mov rdi, rax
test rax, rax
je 0x140078a89
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
cmp rbx, r14
je 0x140078a0a
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.140075e20
mov rcx, rax
test rax, rax
jne 0x1400789fa
mov rdx, qword [0x14013fe58]
cmp rdi, rdx
je 0x1400789fa
mov r8, rbx
mov rcx, r12
call fcn.140075e20
mov rcx, rax
test rax, rax
je 0x140078a89
mov rax, qword [rbx + 0x20]
mov qword [rax], rcx
add rbx, 0x28
cmp rbx, r14
jne 0x1400789c1
add rsi, 0x38
cmp rsi, r13
jne 0x1400789a0
mov rax, qword [rbp - 0x69]
mov r14, qword [rbp - 0x41]
mov rcx, rax
call fcn.140078b40
mov r9d, dword [rbp - 0x79]
mov r8d, dword [rbp - 0x75]
mov r13, qword [rbp - 0x39]
add r8, r13
mov rsi, qword [rbp - 0x71]
mov rdx, rsi
mov rcx, r12
call fcn.140075af0
xor edi, edi
test al, al
je 0x140078aa1
mov r8d, dword [r14 + 0x28]
add r8, qword [rbp - 0x31]
mov dword [rbp - 0x79], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, [rbp - 0x79]
mov rcx, r12
call fcn.140078cb0
test al, al
je 0x140078aa1
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r15
call fcn.1400657f0
mov rax, rsi
jmp 0x140078b00
mov rcx, qword [rbp - 0x69]
call fcn.140078b40
mov rsi, qword [rbp - 0x71]
mov r13, qword [rbp - 0x39]
xor edi, edi
jmp 0x140078aa1
mov rsi, rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rsi
mov rcx, r12
call fcn.140075d10
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140078afe
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140078aee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140078b2d
mov rcx, r8
call fcn.14007ba50
mov qword [r15], rdi
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rdi
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14007b600
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdx + 0x10]
jmp 0x140078aca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3