Function at 0x1400a7d50
Capabilities:
Parse pe header

Disassembly:
jmp 0x140121d50
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd8
xor r15d, r15d
lea rbx, [rcx - 1]
mov dword [r9], r15d
mov rcx, rbx
mov word [rdx], r15w
mov r13, r9
lea rdx, [rbp - 0x31]
lea r8d, [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140121da1
add rsp, 0xd8
pop r15
pop r13
pop rbx
pop rbp
ret
mov r8d, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0xc8], rdi
mov rdi, qword [rbp + 0x77]
mov rdx, rdi
call fcn.1400aa6f4
test eax, eax
je 0x140121de6
mov r8, qword [rbp - 0x29]
mov eax, 0x5a4d
cmp word [r8], ax
jne 0x140121de6
movsxd rax, dword [r8 + 0x3c]
test eax, eax
jle 0x140121de6
cmp dword [r8 + rax], 0x4550
lea rcx, [r8 + rax]
je 0x140121ded
xor eax, eax
jmp 0x1401221ab
movzx r9d, word [rcx + 0x14]
sub ebx, r8d
movzx edx, word [rcx + 6]
add r9, rcx
mov qword [rsp + 0xd0], rsi
mov esi, r15d
mov qword [rsp + 0xb8], r14
mov r14d, r15d
test edx, edx
je 0x140121e43
nop word [rax + rax]
mov eax, r14d
lea rcx, [rax + rax*4]
mov eax, dword [r9 + rcx*8 + 0x24]
cmp ebx, eax
jb 0x140121e3b
mov esi, ebx
sub esi, eax
cmp ebx, dword [r9 + rcx*8 + 0x20]
jb 0x140121e43
inc r14d
cmp r14d, edx
jb 0x140121e20
cmp r14d, edx
je 0x140121ecf
inc r14d
cmp byte [0x14025a7e2], r15b
jne 0x140121e7b
cmp qword [0x14025a7d8], r15
jne 0x140121ecf
call fcn.140121730
mov qword [0x14025a7d8], rax
test rax, rax
je 0x140121ecf
mov byte [0x14025a7e2], 1
jmp 0x140121e82
mov rax, qword [0x14025a7d8]
lea rdx, str.PDBOpenValidate5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140121ecf
mov rcx, rax
call fcn.1400a7652
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], r15
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
jne 0x140121ed6
xor eax, eax
jmp 0x14012219b
mov rdi, qword [rbp - 0x49]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
cmp eax, 0x1329141
jne 0x140122180
mov rdi, qword [rbp - 0x49]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call fcn.1400a7652
lea r9, [rbp - 0x41]
xor edx, edx
lea r8, str.rwa
mov rcx, rdi
call rbx
test eax, eax
je 0x140122180
mov rdi, qword [rbp - 0x41]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1400a7652
mov qword [rsp + 0x30], r15
lea r9, [rbp - 0x51]
mov qword [rsp + 0x28], r15
mov r8d, esi
movzx edx, r14w
mov qword [rsp + 0x20], r15
mov rcx, rdi
call rbx
test eax, eax
je 0x140122168
mov rdi, qword [rbp - 0x51]
mov qword [rbp - 0x69], r15
mov rax, qword [rdi]
mov rbx, qword [rax + 0xd0]
mov rcx, rbx
call fcn.1400a7652
lea rdx, [rbp - 0x69]
mov rcx, rdi
call rbx
test al, al
je 0x14012214d
mov rdi, qword [rbp - 0x69]
test rdi, rdi
je 0x14012214d
mov rax, qword [rdi]
mov qword [rsp + 0xc0], r12
mov r12, r15
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
test eax, eax
je 0x14012211a
nop
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1400a7652
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x57]
lea rax, [rbp - 0x5d]
xor edx, edx
lea r8, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call rbx
test al, al
je 0x14012212e
movzx eax, word [rbp + 0x57]
cmp eax, r14d
jne 0x140122018
mov ecx, dword [rbp - 0x61]
cmp ecx, esi
ja 0x140122018
add ecx, dword [rbp - 0x5d]
cmp esi, ecx
jb 0x140122039
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
test eax, eax
jne 0x140121fc0
jmp 0x14012211a
mov eax, dword [rbp + 0x6f]
test eax, eax
je 0x14012212e
mov ebx, eax
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x14012212e
mov rdi, qword [rbp - 0x69]
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x18]
mov rcx, rbx
call fcn.1400a7652
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, rdi
call rbx
test al, al
je 0x14012211a
sub esi, dword [rbp - 0x61]
cmp esi, dword [r12]
jb 0x14012211a
mov edx, dword [rbp + 0x6f]
mov r14d, 1
mov ecx, r14d
cmp edx, ecx
jbe 0x1401220ce
nop dword [rax]
mov eax, ecx
cmp esi, dword [r12 + rax*8]
jb 0x1401220ce
inc ecx
cmp ecx, edx
jb 0x1401220c0
mov rdi, qword [rbp - 0x51]
lea eax, [rcx - 1]
mov eax, dword [r12 + rax*8 + 4]
and eax, 0xffffff
mov dword [r13], eax
mov rax, qword [rdi]
mov rbx, qword [rax + 0xe0]
mov rcx, rbx
call fcn.1400a7652
mov r8, qword [rbp + 0x5f]
lea r9, [rbp + 0x67]
mov edx, dword [rbp - 0x59]
mov rcx, rdi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call rbx
test al, al
cmovne r15d, r14d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rbp - 0x51]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x80]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x41]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x70]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x49]
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x58]
mov rcx, rbx
call fcn.1400a7652
mov rcx, rdi
call rbx
mov eax, r15d
mov rsi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xd8
pop r15
pop r13
pop rbx
pop rbp
ret