Function at 0x14002c890
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 0x14002c5b1
call qword [0x1400610d0]
mov qword [rdi + 0x10], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002c5c4
call qword [0x140061078]
mov qword [rdi + 8], r14
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002c5da
call qword [0x140061078]
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14002c5f2
call qword [0x1400610e8]
mov qword [rdi + 0x48], 0xffffffffffffffff
lea rcx, [rdi + 0xf8]
mov qword [rdi + 0x20], r14
mov qword [rdi + 0x28], r14
cmp rcx, rsi
je 0x14002c658
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov rdx, qword [rsi + 0x10]
jb 0x14002c617
mov r9, qword [rsi]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x14002c653
mov qword [rsp + 0x50], rbp
mov rbp, rcx
cmp rax, 8
jb 0x14002c631
mov rbp, qword [rcx]
lea rbx, [rdx + rdx]
mov qword [rcx + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.1400354a0
mov word [rbx + rbp], r14w
mov rbp, qword [rsp + 0x50]
jmp 0x14002c658
call fcn.140027de0
mov byte [rdi + 0x1c], r14b
cmp qword [rsi + 0x18], 8
jb 0x14002c666
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 [0x1400610c8]
mov rcx, qword [rdi]
mov rbx, rax
mov rsi, qword [rsp + 0x58]
cmp rax, rcx
je 0x14002c6af
cmp rcx, 0xffffffffffffffff
je 0x14002c6a9
call qword [0x140061078]
mov qword [rdi], rbx
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x14002c777
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov r8d, 0x1000002
call qword [0x1400610e0]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14002c6f2
test rcx, rcx
je 0x14002c6eb
call qword [0x140061078]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
je 0x14002c700
mov byte [rdi + 0x18], r14b
jmp 0x14002c743
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 [0x1400610e0]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14002c73b
test rcx, rcx
je 0x14002c734
call qword [0x140061078]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
je 0x14002c759
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea edx, [r8 + 4]
call qword [0x1400610f0]
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], r14
je 0x14002c777
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp 0x14002c890
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 0x14002c8ad
mov eax, 0xc0000141
add rsp, 0x20
pop rbx
ret
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x14002ca3a
movsxd rdx, dword [r11 + 0x3c]
add rdx, r11
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x14002ca3a
mov eax, 0x20b
mov qword [rsp + 0x40], rsi
mov r9, rdx
mov qword [rsp + 0x48], rdi
cmp word [rdx + 0x18], ax
jne 0x14002c903
mov byte [rcx + 0x19], 1
lea rdi, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x14002c914
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 0x14002c962
lea rax, [rdx + 0xe8]
mov ecx, dword [rax]
test ecx, ecx
je 0x14002c99d
cmp byte [rbx + 0x18], 0
mov r9d, ecx
je 0x14002c9e7
mov rcx, qword [rbx + 0x60]
mov r10, qword [rbx + 0x68]
cmp rcx, r10
je 0x14002c99d
nop
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x14002c994
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x14002c9d9
add rcx, 0x28
cmp rcx, r10
jne 0x14002c980
mov byte [rbx + 0x1b], 0
xor esi, esi
cmp si, word [rdx + 6]
jae 0x14002ca28
mov qword [rsp + 0x38], rbp
nop
mov rdx, qword [rbx + 0x68]
cmp rdx, qword [rbx + 0x70]
je 0x14002ca05
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 0x14002ca11
mov eax, dword [rcx + 0x14]
sub rax, r8
add rax, r11
add rax, r9
jmp 0x14002c9eb
lea rax, [r11 + rcx]
test rax, rax
je 0x14002c99d
test byte [rax + 0x10], 1
je 0x14002c99d
sub eax, r11d
mov byte [rbx + 0x1b], 1
add eax, 0x10
mov dword [rbx + 0x58], eax
jmp 0x14002c9a1
mov r8, rdi
lea rcx, [rbx + 0x60]
call fcn.14002cbb0
mov rax, qword [rbx + 0x20]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x14002c9b0
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