Function at 0x14002d320
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x58], rsi
mov rcx, qword [rcx + 0x10]
xor r14d, r14d
mov rsi, rdx
test rcx, rcx
je 0x14002d041
call qword [0x1400620d0]
mov qword [rdi + 0x10], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002d054
call qword [0x140062078]
mov qword [rdi + 8], r14
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002d06a
call qword [0x140062078]
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14002d082
call qword [0x1400620e8]
mov qword [rdi + 0x48], 0xffffffffffffffff
lea rcx, [rdi + 0xf8]
mov qword [rdi + 0x20], r14
mov qword [rdi + 0x28], r14
cmp rcx, rsi
je 0x14002d0e8
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov rdx, qword [rsi + 0x10]
jb 0x14002d0a7
mov r9, qword [rsi]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x14002d0e3
mov qword [rsp + 0x50], rbp
mov rbp, rcx
cmp rax, 8
jb 0x14002d0c1
mov rbp, qword [rcx]
lea rbx, [rdx + rdx]
mov qword [rcx + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.140035f30
mov word [rbx + rbp], r14w
mov rbp, qword [rsp + 0x50]
jmp 0x14002d0e8
call fcn.140028870
mov byte [rdi + 0x1c], r14b
cmp qword [rsi + 0x18], 8
jb 0x14002d0f6
mov rsi, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edx, 0x120089
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [0x1400620c8]
mov rcx, qword [rdi]
mov rbx, rax
mov rsi, qword [rsp + 0x58]
cmp rax, rcx
je 0x14002d13f
cmp rcx, 0xffffffffffffffff
je 0x14002d139
call qword [0x140062078]
mov qword [rdi], rbx
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x14002d207
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov r8d, 0x1000002
call qword [0x1400620e0]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14002d182
test rcx, rcx
je 0x14002d17b
call qword [0x140062078]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
je 0x14002d190
mov byte [rdi + 0x18], r14b
jmp 0x14002d1d3
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r14
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r14d
lea r8d, [rdx + 2]
call qword [0x1400620e0]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14002d1cb
test rcx, rcx
je 0x14002d1c4
call qword [0x140062078]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
je 0x14002d1e9
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea edx, [r8 + 4]
call qword [0x1400620f0]
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], r14
je 0x14002d207
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp 0x14002d320
mov rax, qword gs:[0x30]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, dword [rax + 0x1250]
add rsp, 0x40
pop r14
ret
push rbx
sub rsp, 0x20
mov r11, qword [rcx + 0x10]
mov rbx, rcx
test r11, r11
jne 0x14002d33d
mov eax, 0xc0000141
add rsp, 0x20
pop rbx
ret
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x14002d4ca
movsxd rdx, dword [r11 + 0x3c]
add rdx, r11
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x14002d4ca
mov eax, 0x20b
mov qword [rsp + 0x40], rsi
mov r9, rdx
mov qword [rsp + 0x48], rdi
cmp word [rdx + 0x18], ax
jne 0x14002d393
mov byte [rcx + 0x19], 1
lea rdi, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x14002d3a4
mov byte [rcx + 0x19], 0
lea rdi, [rdx + 0xf8]
mov eax, dword [rdx + 0x34]
xor r8b, r8b
mov qword [rcx + 0x30], rax
mov eax, dword [rdx + 0x50]
mov dword [rcx + 0x38], eax
mov eax, dword [rdx + 0x54]
mov dword [rcx + 0x40], eax
mov eax, dword [rdx + 0x28]
mov dword [rcx + 0x3c], eax
mov eax, 0x5e
movzx r10d, word [rdx + 0x5c]
mov dword [rcx + 0x54], r10d
movzx eax, word [rax + r9]
mov dword [rcx + 0x5c], eax
movzx eax, word [rdx + 0x16]
shr ax, 0xd
not al
and al, 1
mov byte [rcx + 0x1a], al
lea rax, [rdx + 0xf8]
test r8b, r8b
jne 0x14002d3f2
lea rax, [rdx + 0xe8]
mov ecx, dword [rax]
test ecx, ecx
je 0x14002d42d
cmp byte [rbx + 0x18], 0
mov r9d, ecx
je 0x14002d477
mov rcx, qword [rbx + 0x60]
mov r10, qword [rbx + 0x68]
cmp rcx, r10
je 0x14002d42d
nop
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x14002d424
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x14002d469
add rcx, 0x28
cmp rcx, r10
jne 0x14002d410
mov byte [rbx + 0x1b], 0
xor esi, esi
cmp si, word [rdx + 6]
jae 0x14002d4b8
mov qword [rsp + 0x38], rbp
nop
mov rdx, qword [rbx + 0x68]
cmp rdx, qword [rbx + 0x70]
je 0x14002d495
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0x68], 0x28
jmp 0x14002d4a1
mov eax, dword [rcx + 0x14]
sub rax, r8
add rax, r11
add rax, r9
jmp 0x14002d47b
lea rax, [r11 + rcx]
test rax, rax
je 0x14002d42d
test byte [rax + 0x10], 1
je 0x14002d42d
sub eax, r11d
mov byte [rbx + 0x1b], 1
add eax, 0x10
mov dword [rbx + 0x58], eax
jmp 0x14002d431
mov r8, rdi
lea rcx, [rbx + 0x60]
call fcn.14002d640
mov rax, qword [rbx + 0x20]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x14002d440
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
mov eax, 0xc000007b
add rsp, 0x20
pop rbx
ret