Function at 0x18014dd20
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 0x18014dbb6
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x18014db9f
movzx eax, word [rdx + 0x2c]
test ax, ax
je 0x18014db9f
mov r8d, eax
mov r10d, eax
mov eax, ecx
shl r8, 5
not eax
cmp rax, r8
jb 0x18014db9f
lea rax, [rcx + r8]
cmp rax, rbx
ja 0x18014db9f
add rdx, rcx
xor ecx, ecx
test r10d, r10d
je 0x18014db9f
nop dword [rax + rax]
mov r8d, dword [rdx + 8]
cmp r9, r8
jb 0x18014db94
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x18014dba7
add rdx, 0x20
inc ecx
cmp ecx, r10d
jl 0x18014db80
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 0x18014db9f
movzx eax, word [rcx + 0x30]
test ax, ax
je 0x18014db9f
lea rcx, [rax + rax*4]
mov r10d, eax
mov eax, r8d
lea r11, [rcx*8]
not eax
cmp rax, r11
jb 0x18014db9f
lea rax, [r8 + r11]
cmp rax, rbx
ja 0x18014db9f
add rdx, r8
xor ecx, ecx
test r10d, r10d
je 0x18014db9f
test dword [rdx + 4], 0xfffffff7
je 0x18014dc11
mov r8d, dword [rdx + 0xc]
cmp r9, r8
jb 0x18014dc11
mov eax, dword [rdx + 0x14]
add eax, r8d
cmp r9, rax
jb 0x18014dc24
add rdx, 0x28
inc ecx
cmp ecx, r10d
jl 0x18014dbf4
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 0x18014db9f
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 0x18014dd4c
cmp rdx, 0x10
jae 0x18014de5a
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18014de5a
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x18014de5a
mov rcx, rax
add rax, 0x18
cmp r8, rax
jb 0x18014de5a
lea rbx, [rcx + r10]
add rax, 0xe0
cmp dword [rbx], 0x4550
jne 0x18014de5a
movzx ecx, word [rbx + 4]
mov edx, 0x14c
cmp cx, dx
je 0x18014dda8
mov edx, 0x8664
cmp cx, dx
jne 0x18014de5a
cmp r8, rax
jbe 0x18014de5a
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 0x18014ddfc
mov eax, 0x3c
cmp r11d, eax
jge 0x18014de2e
mov rcx, r10
lea rax, [r15 + r9]
sub rcx, rbx
add rcx, r8
cmp rax, rcx
jae 0x18014de38
mov eax, dword [r9]
cmp r14, rax
jb 0x18014de25
cmp edi, eax
ja 0x18014de25
mov ebp, dword [r9 + 8]
mov edi, eax
add r9, 0x28
inc r11d
jmp 0x18014ddf0
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 0x18014dd3c
movzx ecx, byte [r10 + 4]
mov edx, ecx
sub edx, 1
je 0x18014de92
cmp edx, 1
jne 0x18014dd3c
cmp r8, 0x40
jae 0x18014de9c
movabs rax, 0xfffabadafabadaff
add rsp, 0x30
pop rbx
ret
cmp r8, 0x34
jb 0x18014dd3c
sub ecx, 1
je 0x18014dfe6
cmp ecx, 1
jne 0x18014dd3c
cmp word [r10 + 0x10], 2
mov r9, qword [r10 + 0x18]
jne 0x18014df4e
mov rcx, qword [r10 + 0x20]
test rcx, rcx
je 0x18014dfdb
movzx r11d, word [r10 + 0x38]
test r11w, r11w
je 0x18014dfdb
imul rdx, r11, 0x38
mov eax, 0xffffffff
sub rax, rcx
cmp rax, rdx
jb 0x18014dfdb
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x18014dfdd
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x18014dfdd
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x18014df26
mov rcx, qword [r8 + 0x28]
add rcx, r11
cmp r9, rcx
jb 0x18014df3b
add r8, 0x38
inc r10d
cmp r10d, ebx
jl 0x18014df11
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 0x18014dfdb
movzx r11d, word [r10 + 0x3c]
test r11w, r11w
je 0x18014dfdb
mov edx, r11d
mov eax, 0xffffffff
shl rdx, 6
sub rax, rcx
cmp rax, rdx
jb 0x18014dfdb
lea rax, [rdx + rcx]
xor edx, edx
cmp rax, r8
ja 0x18014dfdd
lea r8, [rcx + r10]
mov r10d, edx
mov ebx, r11d
test r11d, r11d
je 0x18014dfdd
test dword [r8 + 4], 0xfffffff7
je 0x18014dfb3
mov r11, qword [r8 + 0x10]
cmp r9, r11
jb 0x18014dfb3
mov rcx, qword [r8 + 0x20]
add rcx, r11
cmp r9, rcx
jb 0x18014dfc8
add r8, 0x40
inc r10d
cmp r10d, ebx
jl 0x18014df94
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 0x18014db30