Function at 0x140015360
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rcx
xor r13d, r13d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400157ad
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x1400157ad
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x1400157ad
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r13 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x1400157ad
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov ecx, ebx
mov qword [rbp - 0x61], rcx
je 0x140015791
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x1400d9204], eax
jle 0x1400154cc
lea rcx, [0x1400d9204]
call fcn.140074acc
cmp dword [0x1400d9204], 0xffffffff
jne 0x1400154c8
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [r13 + 0x15]
lea rdx, [0x140089660]
lea rcx, [rbp - 0x59]
call fcn.14000f700
nop
lea r8, [rbp - 0x59]
mov rdx, qword [0x1400a36d8]
mov rcx, rdi
call fcn.140011170
mov qword [0x1400d9268], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x1400154bc
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400154b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400154b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140074a1c
nop
lea rcx, [0x1400d9204]
call fcn.140074a60
mov rcx, qword [rbp - 0x61]
cmp qword [0x1400d9268], 0
je 0x140015791
mov qword [rbp - 0x69], r13
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140012c20
test al, al
je 0x140015791
mov r13, qword [rbp - 0x69]
test r13, r13
je 0x140015791
mov r8d, dword [r15 + 0x54]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r15 + 6]
jae 0x14001555e
add rbx, r15
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14001554d
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x140015530
xor edx, edx
mov rax, r14
mov qword [rbp - 0x29], rax
mov r14, r13
sub r14, rax
mov qword [rbp - 0x39], r14
mov rsi, r14
sub rsi, qword [r15 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x140015645
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x140015645
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r11, rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + r12 + 0xb0]
test ecx, ecx
jne 0x1400155bc
jmp 0x14001564e
lea rbx, [r12 + rcx]
mov edi, dword [rax + r12 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, rdi
jae 0x14001563f
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14001563f
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x59], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x51], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x49], eax
cmp r10, r11
je 0x14001561c
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x11]
add r10, 0x18
mov qword [rbp - 0x11], r10
jmp 0x140015630
lea r8, [rbp - 0x59]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.140014540
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 9]
cmp rbx, rdi
jb 0x1400155d4
mov rbx, qword [rbp - 0x19]
jmp 0x14001565d
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x1400156c3
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r13d, 0xa000
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x1400156ae
nop dword [rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r13w
jne 0x1400156a7
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x140015680
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x140015674
mov r13, qword [rbp - 0x69]
mov r14, qword [rbp - 0x39]
test rbx, rbx
je 0x14001571e
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 0x140015716
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140074a1c
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.140013b90
mov rdx, rax
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.1400157e0
test al, al
je 0x140015791
mov r8, qword [rbp - 0x29]
add r8, r12
mov r9, qword [rbp - 0x61]
mov rdx, r13
mov rcx, rdi
call fcn.140010e40
test al, al
je 0x140015791
mov r8d, dword [r15 + 0x28]
add r8, r14
xor eax, eax
mov dword [rbp - 0x69], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.1400159b0
test al, al
je 0x140015791
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x1400157af
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, rdi
call fcn.140011060
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140074780
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret