Function at 0x1400a1b39
Capabilities:
Parse pe header

Disassembly:
jmp 0x140122bf0
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 0x140122c41
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.1400a4415
test eax, eax
je 0x140122c86
mov r8, qword [rbp - 0x29]
mov eax, 0x5a4d
cmp word [r8], ax
jne 0x140122c86
movsxd rax, dword [r8 + 0x3c]
test eax, eax
jle 0x140122c86
cmp dword [r8 + rax], 0x4550
lea rcx, [r8 + rax]
je 0x140122c8d
xor eax, eax
jmp 0x14012305b
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 0x140122ce3
nop word [rax + rax]
mov eax, r14d
lea rcx, [rax + rax*4]
mov eax, dword [r9 + rcx*8 + 0x24]
cmp ebx, eax
jb 0x140122cdb
mov esi, ebx
sub esi, eax
cmp ebx, dword [r9 + rcx*8 + 0x20]
jb 0x140122ce3
inc r14d
cmp r14d, edx
jb 0x140122cc0
cmp r14d, edx
je 0x140122d6f
inc r14d
cmp byte [0x140244132], r15b
jne 0x140122d1b
cmp qword [0x140244128], r15
jne 0x140122d6f
call fcn.1401225d0
mov qword [0x140244128], rax
test rax, rax
je 0x140122d6f
mov byte [0x140244132], 1
jmp 0x140122d22
mov rax, qword [0x140244128]
lea rdx, str.PDBOpenValidate5
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140122d6f
mov rcx, rax
call fcn.1400a147c
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 0x140122d76
xor eax, eax
jmp 0x14012304b
mov rdi, qword [rbp - 0x49]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1400a147c
mov rcx, rdi
call rbx
cmp eax, 0x1329141
jne 0x140123030
mov rdi, qword [rbp - 0x49]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call fcn.1400a147c
lea r9, [rbp - 0x41]
xor edx, edx
lea r8, [0x1401fe0f4]
mov rcx, rdi
call rbx
test eax, eax
je 0x140123030
mov rdi, qword [rbp - 0x41]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1400a147c
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 0x140123018
mov rdi, qword [rbp - 0x51]
mov qword [rbp - 0x69], r15
mov rax, qword [rdi]
mov rbx, qword [rax + 0xd0]
mov rcx, rbx
call fcn.1400a147c
lea rdx, [rbp - 0x69]
mov rcx, rdi
call rbx
test al, al
je 0x140122ffd
mov rdi, qword [rbp - 0x69]
test rdi, rdi
je 0x140122ffd
mov rax, qword [rdi]
mov qword [rsp + 0xc0], r12
mov r12, r15
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400a147c
mov rcx, rdi
call rbx
test eax, eax
je 0x140122fca
nop
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1400a147c
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 0x140122fde
movzx eax, word [rbp + 0x57]
cmp eax, r14d
jne 0x140122eb8
mov ecx, dword [rbp - 0x61]
cmp ecx, esi
ja 0x140122eb8
add ecx, dword [rbp - 0x5d]
cmp esi, ecx
jb 0x140122ed9
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400a147c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140122e60
jmp 0x140122fca
mov ebx, dword [rbp + 0x6f]
movabs rcx, 0x1ffffffffffffffd
lea rax, [rbx - 1]
cmp rax, rcx
ja 0x140122fde
lea rbx, [rbx*8]
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 0x140122fde
mov rdi, qword [rbp - 0x69]
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x18]
mov rcx, rbx
call fcn.1400a147c
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 0x140122fca
sub esi, dword [rbp - 0x61]
cmp esi, dword [r12]
jb 0x140122fca
mov edx, dword [rbp + 0x6f]
mov r14d, 1
mov ecx, r14d
cmp edx, ecx
jbe 0x140122f7e
nop dword [rax]
mov eax, ecx
cmp esi, dword [r12 + rax*8]
jb 0x140122f7e
inc ecx
cmp ecx, edx
jb 0x140122f70
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.1400a147c
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.1400a147c
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.1400a147c
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x41]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x70]
mov rcx, rbx
call fcn.1400a147c
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x49]
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x58]
mov rcx, rbx
call fcn.1400a147c
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