Function at 0x1400aaf00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
cmp word [rcx + 0x10], 2
mov r9, rdx
mov rdx, rcx
mov rbx, r8
jne 0x1400aad96
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x1400aad7f
movzx eax, word [rdx + 0x2c]
test ax, ax
je 0x1400aad7f
mov r8d, eax
mov r10d, eax
mov eax, ecx
shl r8, 5
not eax
cmp rax, r8
jb 0x1400aad7f
lea rax, [rcx + r8]
cmp rax, rbx
ja 0x1400aad7f
add rdx, rcx
xor ecx, ecx
test r10d, r10d
je 0x1400aad7f
nop dword [rax + rax]
mov r8d, dword [rdx + 8]
cmp r9, r8
jb 0x1400aad74
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x1400aad87
add rdx, 0x20
inc ecx
cmp ecx, r10d
jl 0x1400aad60
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov eax, dword [rdx + 4]
sub rax, r8
add rax, r9
mov rbx, qword [rsp + 8]
ret
mov r8d, dword [rcx + 0x20]
test r8d, r8d
je 0x1400aad7f
movzx eax, word [rcx + 0x30]
test ax, ax
je 0x1400aad7f
lea rcx, [rax + rax*4]
mov r10d, eax
mov eax, r8d
lea r11, [rcx*8]
not eax
cmp rax, r11
jb 0x1400aad7f
lea rax, [r8 + r11]
cmp rax, rbx
ja 0x1400aad7f
add rdx, r8
xor ecx, ecx
test r10d, r10d
je 0x1400aad7f
test dword [rdx + 4], 0xfffffff7
je 0x1400aadf1
mov r8d, dword [rdx + 0xc]
cmp r9, r8
jb 0x1400aadf1
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x1400aae04
add rdx, 0x28
inc ecx
cmp ecx, r10d
jl 0x1400aadd4
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov r10d, dword [rdx + 0x10]
mov rcx, r9
mov eax, r10d
sub rcx, r8
not eax
cmp rax, rcx
jb 0x1400aad7f
mov rbx, qword [rsp + 8]
mov eax, r10d
sub rax, r8
add rax, r9
ret
push rbx
sub rsp, 0x30
mov r8, rdx
mov r10, rcx
cmp rdx, 0x40
jae 0x1400aaf2c
cmp rdx, 0x10
jae 0x1400ab03a
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ab03a
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x1400ab03a
mov rcx, rax
add rax, 0x18
cmp r8, rax
jb 0x1400ab03a
lea rbx, [rcx + r10]
add rax, 0xe0
cmp dword [rbx], 0x4550
jne 0x1400ab03a
movzx ecx, word [rbx + 4]
mov edx, 0x14c
cmp cx, dx
je 0x1400aaf88
mov edx, 0x8664
cmp cx, dx
jne 0x1400ab03a
cmp r8, rax
jbe 0x1400ab03a
movzx r9d, word [rbx + 0x14]
xor edx, edx
mov qword [rsp + 0x40], rbp
add r9, 0x24
mov qword [rsp + 0x48], rsi
add r9, rbx
movzx esi, word [rbx + 6]
mov r11d, edx
mov qword [rsp + 0x50], rdi
mov ebp, edx
mov qword [rsp + 0x28], r14
mov edi, edx
mov r14d, dword [rbx + 0x28]
mov qword [rsp + 0x20], r15
mov r15d, 0x1c
sub r15, rbx
mov eax, esi
cmp esi, 0x3c
jb 0x1400aafdc
mov eax, 0x3c
cmp r11d, eax
jge 0x1400ab00e
mov rcx, r10
lea rax, [r15 + r9]
sub rcx, rbx
add rcx, r8
cmp rax, rcx
jae 0x1400ab018
mov eax, dword [r9]
cmp r14, rax
jb 0x1400ab005
cmp edi, eax
ja 0x1400ab005
mov ebp, dword [r9 + 8]
mov edi, eax
add r9, 0x28
inc r11d
jmp 0x1400aafd0
mov edx, ebp
mov eax, edi
sub rdx, rax
add rdx, r14
mov r15, qword [rsp + 0x20]
mov rax, rdx
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cmp dword [r10], 0x464c457f
jne 0x1400aaf1c
movzx ecx, byte [r10 + 4]
mov edx, ecx
sub edx, 1
je 0x1400ab072
cmp edx, 1
jne 0x1400aaf1c
cmp r8, 0x40
jae 0x1400ab07c
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
cmp r8, 0x34
jb 0x1400aaf1c
sub ecx, 1
je 0x1400ab1c6
cmp ecx, 1
jne 0x1400aaf1c
cmp word [r10 + 0x10], 2
mov r9, qword [r10 + 0x18]
jne 0x1400ab12e
mov rcx, qword [r10 + 0x20]
test rcx, rcx
je 0x1400ab1bb
movzx r11d, word [r10 + 0x38]
test r11w, r11w
je 0x1400ab1bb
imul rdx, r11, 0x38
mov eax, 0xffffffff
sub rax, rcx
cmp rax, rdx
jb 0x1400ab1bb
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x1400ab1bd
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x1400ab1bd
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x1400ab106
mov rcx, qword [r8 + 0x28]
add rcx, r11
cmp r9, rcx
jb 0x1400ab11b
add r8, 0x38
inc r10d
cmp r10d, ebx
jl 0x1400ab0f1
mov rax, rdx
add rsp, 0x30
pop rbx
ret
mov rdx, qword [r8 + 8]
sub rdx, r11
add rdx, r9
mov rax, rdx
add rsp, 0x30
pop rbx
ret
mov rcx, qword [r10 + 0x28]
test rcx, rcx
je 0x1400ab1bb
movzx r11d, word [r10 + 0x3c]
test r11w, r11w
je 0x1400ab1bb
mov edx, r11d
mov eax, 0xffffffff
shl rdx, 6
sub rax, rcx
cmp rax, rdx
jb 0x1400ab1bb
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x1400ab1bd
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x1400ab1bd
test dword [r8 + 4], 0xfffffff7
je 0x1400ab193
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x1400ab193
mov rcx, qword [r8 + 0x20]
add rcx, r11
cmp r9, rcx
jb 0x1400ab1a8
add r8, 0x40
inc r10d
cmp r10d, ebx
jl 0x1400ab174
mov rax, rdx
add rsp, 0x30
pop rbx
ret
mov rdx, qword [r8 + 0x18]
sub rdx, r11
add rdx, r9
mov rax, rdx
add rsp, 0x30
pop rbx
ret
xor edx, edx
mov rax, rdx
add rsp, 0x30
pop rbx
ret
mov edx, dword [r10 + 0x18]
mov rcx, r10
add rsp, 0x30
pop rbx
jmp 0x1400aad10