Function at 0x14001cbf0
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 0x14001ca86
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x14001ca6f
movzx eax, word [rdx + 0x2c]
test ax, ax
je 0x14001ca6f
mov r8d, eax
mov r10d, eax
mov eax, ecx
shl r8, 5
not eax
cmp rax, r8
jb 0x14001ca6f
lea rax, [rcx + r8]
cmp rax, rbx
ja 0x14001ca6f
add rdx, rcx
xor ecx, ecx
test r10d, r10d
je 0x14001ca6f
nop dword [rax + rax]
mov r8d, dword [rdx + 8]
cmp r9, r8
jb 0x14001ca64
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x14001ca77
add rdx, 0x20
inc ecx
cmp ecx, r10d
jl 0x14001ca50
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 0x14001ca6f
movzx eax, word [rcx + 0x30]
test ax, ax
je 0x14001ca6f
lea rcx, [rax + rax*4]
mov r10d, eax
mov eax, r8d
lea r11, [rcx*8]
not eax
cmp rax, r11
jb 0x14001ca6f
lea rax, [r8 + r11]
cmp rax, rbx
ja 0x14001ca6f
add rdx, r8
xor ecx, ecx
test r10d, r10d
je 0x14001ca6f
test dword [rdx + 4], 0xfffffff7
je 0x14001cae1
mov r8d, dword [rdx + 0xc]
cmp r9, r8
jb 0x14001cae1
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x14001caf4
add rdx, 0x28
inc ecx
cmp ecx, r10d
jl 0x14001cac4
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 0x14001ca6f
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 0x14001cc1c
cmp rdx, 0x10
jae 0x14001cd2a
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cd2a
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x14001cd2a
mov rcx, rax
add rax, 0x18
cmp r8, rax
jb 0x14001cd2a
lea rbx, [rcx + r10]
add rax, 0xe0
cmp dword [rbx], 0x4550
jne 0x14001cd2a
movzx ecx, word [rbx + 4]
mov edx, 0x14c
cmp cx, dx
je 0x14001cc78
mov edx, 0x8664
cmp cx, dx
jne 0x14001cd2a
cmp r8, rax
jbe 0x14001cd2a
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 0x14001cccc
mov eax, 0x3c
cmp r11d, eax
jge 0x14001ccfe
mov rcx, r10
lea rax, [r15 + r9]
sub rcx, rbx
add rcx, r8
cmp rax, rcx
jae 0x14001cd08
mov eax, dword [r9]
cmp r14, rax
jb 0x14001ccf5
cmp edi, eax
ja 0x14001ccf5
mov ebp, dword [r9 + 8]
mov edi, eax
add r9, 0x28
inc r11d
jmp 0x14001ccc0
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 0x14001cc0c
movzx ecx, byte [r10 + 4]
mov edx, ecx
sub edx, 1
je 0x14001cd62
cmp edx, 1
jne 0x14001cc0c
cmp r8, 0x40
jae 0x14001cd6c
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
cmp r8, 0x34
jb 0x14001cc0c
sub ecx, 1
je 0x14001ceb6
cmp ecx, 1
jne 0x14001cc0c
cmp word [r10 + 0x10], 2
mov r9, qword [r10 + 0x18]
jne 0x14001ce1e
mov rcx, qword [r10 + 0x20]
test rcx, rcx
je 0x14001ceab
movzx r11d, word [r10 + 0x38]
test r11w, r11w
je 0x14001ceab
imul rdx, r11, 0x38
mov eax, 0xffffffff
sub rax, rcx
cmp rax, rdx
jb 0x14001ceab
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x14001cead
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x14001cead
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x14001cdf6
mov rcx, qword [r8 + 0x28]
add rcx, r11
cmp r9, rcx
jb 0x14001ce0b
add r8, 0x38
inc r10d
cmp r10d, ebx
jl 0x14001cde1
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 0x14001ceab
movzx r11d, word [r10 + 0x3c]
test r11w, r11w
je 0x14001ceab
mov edx, r11d
mov eax, 0xffffffff
shl rdx, 6
sub rax, rcx
cmp rax, rdx
jb 0x14001ceab
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x14001cead
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x14001cead
test dword [r8 + 4], 0xfffffff7
je 0x14001ce83
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x14001ce83
mov rcx, qword [r8 + 0x20]
add rcx, r11
cmp r9, rcx
jb 0x14001ce98
add r8, 0x40
inc r10d
cmp r10d, ebx
jl 0x14001ce64
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 0x14001ca00