Function at 0x140025a80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1400a3110]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
mov r14, qword [0x14020fac8]
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140025e6b
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
cmp dword [rdi], 0x4550
jne 0x140025e6b
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140025e6b
mov ebx, dword [rdi + 0x50]
mov qword [rbp - 0x21], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [0x14007d350]
mov r12, rax
test rbx, rbx
je 0x140025e5a
xor r15d, r15d
cmp qword [0x140210018], r15
jne 0x140025c1b
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r15b
lea r8d, [r15 + 0xe]
lea rdx, str.ExAllocatePool
lea rcx, [rbp + 7]
call fcn.1400233b0
nop
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], r15b
lea r8d, [r15 + 0xc]
lea rdx, [0x1400982f8]
lea rcx, [rbp - 0x19]
call fcn.1400233b0
nop
lea rcx, [rbp - 0x19]
call fcn.140029340
mov rdx, rax
lea r8, [rbp + 7]
mov rcx, r13
call fcn.140024580
mov qword [0x140210018], rax
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140025bcd
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025bc8
call qword [0x14007d928]
int3
call fcn.14007b5ec
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140025c1b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025c16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025c16
call qword [0x14007d928]
int3
call fcn.14007b5ec
mov qword [rbp - 0x29], r15
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x29]
mov rcx, r13
call fcn.140024f50
test al, al
je 0x140025e5a
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x140025d2c
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, r12
call fcn.14007c122
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140025c94
add rbx, rdi
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r12
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r14
call fcn.14007c122
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [rdi + 6]
cmp r15d, eax
jl 0x140025c70
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x19]
call fcn.140026d00
mov rdx, rbx
mov rcx, rax
call fcn.140025ea0
mov rdx, r12
lea rcx, [rbp - 0x19]
call fcn.140026e30
mov rdx, rax
mov rcx, r13
call fcn.140025fa0
test al, al
je 0x140025d29
mov r9, qword [rbp - 0x21]
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.1400241f0
test al, al
je 0x140025d29
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [0x14007d370]
mov r8d, dword [rdi + 0x28]
add r8, rsi
xor r15d, r15d
mov dword [rbp - 0x29], r15d
lea rdx, [rbp - 0x29]
mov rcx, r13
call fcn.140026360
test al, al
je 0x140025d2c
mov r9d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, r13
call fcn.140024290
mov rax, rsi
jmp 0x140025e6d
xor r15d, r15d
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [0x14007d370]
test rsi, rsi
je 0x140025e6b
cmp qword [0x140210040], 0
jne 0x140025e4d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov r8d, 0xa
lea rdx, str.ExFreePool
lea rcx, [rbp + 7]
call fcn.1400233b0
nop
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov r8d, 0xc
lea rdx, [0x1400982f8]
lea rcx, [rbp - 0x19]
call fcn.1400233b0
nop
lea rcx, [rbp - 0x19]
call fcn.140029340
mov rdx, rax
lea r8, [rbp + 7]
mov rcx, r13
call fcn.140024580
mov qword [0x140210040], rax
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140025dff
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025dfa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025dfa
call qword [0x14007d928]
int3
call fcn.14007b5ec
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140025e4d
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025e48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025e48
call qword [0x14007d928]
int3
call fcn.14007b5ec
mov r9, rsi
mov rcx, r13
call fcn.1400254c0
jmp 0x140025e6b
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [0x14007d370]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14007b0a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret