Function at 0x1400a7850
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0
je 0x1400a7875
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
cmp rax, 0x40
jae 0x1400a787c
xor al, al
jmp 0x1400a7b2e
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400a78a8
xor al, al
jmp 0x1400a7b2e
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x60]
add rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x38], rcx
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
cmp qword [rcx + 0x38], rax
jb 0x1400a7905
mov rdi, qword [rsp + 0x60]
mov rdi, qword [rdi + 0x38]
add rdi, 0x108
mov rcx, qword [rsp + 0x60]
call fcn.1400a8950
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x18]
cmp rdi, rax
jbe 0x1400a790c
xor al, al
jmp 0x1400a7b2e
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
add rcx, 4
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x1400a7940
xor al, al
jmp 0x1400a7b2e
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x1400a7970
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 4]
cmp eax, 0x200
je 0x1400a7970
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 4]
cmp eax, 0x284
jne 0x1400a7979
mov rax, qword [rsp + 0x60]
mov byte [rax + 9], 1
mov rax, qword [rsp + 0x60]
mov byte [rax + 8], 1
mov rax, qword [rsp + 0x20]
movzx edi, word [rax + 0x14]
mov rcx, qword [rsp + 0x60]
call fcn.1400a8950
cmp edi, eax
jbe 0x1400a79a0
xor al, al
jmp 0x1400a7b2e
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 9]
test eax, eax
je 0x1400a79ce
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x20]
add rdi, 0x268
add rsi, 0x18
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
jmp 0x1400a7a94
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x20]
add rdi, 0x268
add rsi, 0x18
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
add rdi, 0x288
add rsi, 0x20
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
add rdi, 0x2d0
add rsi, 0x58
mov ecx, 0x88
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x34]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x280], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x48]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x2b0], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x4c]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x2b8], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x2c0], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x54]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x2c8], rcx
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x20]
lea rcx, [rax + rcx + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x60]
call fcn.1400a8950
cmp dword [rsp + 0x28], eax
jbe 0x1400a7ad5
xor al, al
jmp 0x1400a7b2e
mov ecx, dword [rsp + 0x28]
call fcn.140097a1c
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x260], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x260], 0
jne 0x1400a7b07
xor al, al
jmp 0x1400a7b2e
mov ecx, dword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rdi + 0x260]
mov rsi, qword [rsi + 0x48]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x60]
call fcn.1400a8bb0
mov al, 1
add rsp, 0x48
pop rdi
pop rsi
ret