Function at 0x1400146f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, rcx
mov qword [rbp - 0x29], rcx
xor r12d, r12d
mov eax, 0x5a4d
cmp word [0x1400ac320], ax
jne 0x140014c15
movsxd r13, dword [0x1400ac35c]
lea rsi, [0x1400ac320]
add r13, rsi
cmp dword [r13], 0x4550
jne 0x140014c15
test r13, r13
je 0x140014c15
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x140014c15
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x140014c15
movzx ecx, word [r13 + 0x14]
mov r15d, dword [rcx + r13 + 0x24]
mov dword [rbp - 0x69], r15d
sub ebx, r15d
mov ecx, ebx
mov qword [rbp - 0x59], rcx
je 0x140014c04
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x1400b0f98], eax
jle 0x140014885
lea rcx, [0x1400b0f98]
call fcn.140084c88
cmp dword [0x1400b0f98], 0xffffffff
jne 0x140014881
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8d, 0x15
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x51]
call fcn.140002580
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x1400af7e8]
mov rcx, rdi
call fcn.140012440
mov qword [0x1400b0fc0], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x140014875
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001486f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001486f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084894
nop
lea rcx, [0x1400b0f98]
call fcn.140084c1c
mov rcx, qword [rbp - 0x59]
cmp qword [0x1400b0fc0], 0
je 0x140014c04
mov qword [rbp - 0x61], r12
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x61]
mov rcx, rdi
call fcn.140013cb0
test al, al
je 0x140014c04
mov r12, qword [rbp - 0x61]
test r12, r12
je 0x140014c04
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r13 + 6]
jae 0x140014922
add rbx, r13
lea r15, [0x1400ac320]
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14001490d
mov ecx, dword [rbx]
add rcx, r14
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r15
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x1400148f0
mov r15d, dword [rbp - 0x69]
xor edx, edx
mov eax, r15d
mov qword [rbp - 0x69], rax
mov r15, r12
sub r15, rax
mov qword [rbp - 0x61], r15
mov rsi, r15
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140014a11
movsxd rax, dword [r14 + 0x3c]
add rax, r14
cmp dword [rax], 0x4550
jne 0x140014a11
test rax, rax
je 0x140014a11
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r11, rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x140014986
jmp 0x140014a1a
lea rbx, [r14 + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, rdi
jae 0x140014a0b
nop dword [rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140014a0b
mov eax, dword [rbx]
add rax, r14
mov qword [rbp - 0x51], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x49], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x41], eax
cmp r10, r11
je 0x1400149e8
movups xmm0, xmmword [rbp - 0x51]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x41]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x11]
add r10, 0x18
mov qword [rbp - 0x11], r10
jmp 0x1400149fc
lea r8, [rbp - 0x51]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.140003690
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 9]
cmp rbx, rdi
jb 0x1400149a0
mov rbx, qword [rbp - 0x19]
jmp 0x140014a29
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x140014a93
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r15d, 0xa000
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x140014a7e
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r15w
jne 0x140014a77
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x140014a50
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x140014a40
mov r14, qword [rbp - 0x31]
mov r15, qword [rbp - 0x61]
test rbx, rbx
je 0x140014aee
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x140014ae6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014ae6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140084894
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140014c15
movsxd rax, dword [r14 + 0x3c]
add rax, r14
cmp dword [rax], 0x4550
jne 0x140014c15
test rax, rax
je 0x140014c15
mov ecx, dword [rax + 0xd8]
test ecx, ecx
je 0x140014b73
mov rdi, qword [rcx + r14 + 0x58]
test rdi, rdi
je 0x140014b73
mov rax, r14
sub rax, r15
add rdi, rax
movabs rsi, 0x2b992ddfa232
cmp qword [rdi], rsi
jne 0x140014c15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
xor rcx, rsi
movabs rax, 0x2b992ddfa233
cmp rcx, rsi
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140015300
mov rdx, rax
mov rbx, qword [rbp - 0x29]
mov rcx, rbx
call fcn.140014c50
test al, al
je 0x140014be6
mov r8, qword [rbp - 0x69]
add r8, r14
mov r9, qword [rbp - 0x59]
mov rdx, r12
mov rcx, rbx
call fcn.1400120e0
test al, al
je 0x140014be6
mov r8d, dword [r13 + 0x28]
add r8, r15
xor eax, eax
mov dword [rbp - 0x69], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x69]
mov rcx, rbx
call fcn.140014ee0
test al, al
je 0x140014be6
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x140014c17
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, rbx
call fcn.140012320
jmp 0x140014c15
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140084830
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret