Function at 0x1400315d0
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 [0x140048010]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, rcx
mov qword [rbp - 0x31], rcx
xor r12d, r12d
mov eax, 0x5a4d
cmp word [0x140048070], ax
jne 0x140031a2d
movsxd r14, dword [0x1400480ac]
lea r13, [0x140048070]
add r14, r13
cmp dword [r14], 0x4550
jne 0x140031a2d
mov eax, 0x20b
cmp word [r14 + 0x18], ax
jne 0x140031a2d
mov ebx, dword [r14 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x140031a2d
movzx ecx, word [r14 + 0x14]
mov esi, dword [rcx + r14 + 0x24]
sub ebx, esi
mov edx, ebx
mov qword [rbp - 0x61], rdx
je 0x140031a11
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14008142c], eax
jle 0x140031752
lea rcx, [0x14008142c]
call fcn.1400324b0
cmp dword [0x14008142c], 0xffffffff
jne 0x14003174e
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [r12 + 0x15]
lea rdx, [0x140038e90]
lea rcx, [rbp - 0x59]
call fcn.140013e70
nop
lea r8, [rbp - 0x59]
mov rdx, qword [0x14004b928]
mov rcx, rdi
call fcn.14002d4b0
mov qword [0x140081490], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x140031742
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003173c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003173c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140032320
nop
lea rcx, [0x14008142c]
call fcn.140032450
mov rdx, qword [rbp - 0x61]
cmp qword [0x140081490], 0
je 0x140031a11
mov qword [rbp - 0x69], r12
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14002eea0
test al, al
je 0x140031a11
mov r12, qword [rbp - 0x69]
test r12, r12
je 0x140031a11
mov r8d, dword [r14 + 0x54]
mov rdx, r13
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r14 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r14 + 6]
jae 0x1400317de
add rbx, r14
test dword [rbx + 0x18], 0x80
ja 0x1400317cd
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r13
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp edi, eax
jl 0x1400317b0
xor edx, edx
mov qword [rbp - 0x29], rsi
mov r13, r12
sub r13, rsi
mov qword [rbp - 0x39], r13
mov rsi, r13
sub rsi, qword [r14 + 0x30]
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x1400318c1
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x1400318c1
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r11, rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + r15 + 0xb0]
test ecx, ecx
jne 0x140031837
jmp 0x1400318ca
lea rbx, [r15 + rcx]
mov edi, dword [rax + r15 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, rdi
jae 0x1400318bb
nop
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x1400318bb
mov eax, dword [rbx]
add rax, r15
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 0x140031898
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 0x1400318ac
lea r8, [rbp - 0x59]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.140030840
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 9]
cmp rbx, rdi
jb 0x140031850
mov rbx, qword [rbp - 0x19]
jmp 0x1400318d9
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x140031943
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r12d, 0xa000
xor r13d, r13d
mov edx, r13d
cmp dword [r8], r13d
jbe 0x14003192e
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, r12w
jne 0x140031927
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x140031900
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x1400318f0
mov r12, qword [rbp - 0x69]
mov r13, qword [rbp - 0x39]
test rbx, rbx
je 0x14003199e
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 0x140031996
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031996
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140032320
mov rdx, r15
lea rcx, [rbp - 0x59]
call fcn.14002fe00
mov rdx, rax
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.140031a60
test al, al
je 0x140031a11
mov r8, qword [rbp - 0x29]
add r8, r15
mov r9, qword [rbp - 0x61]
mov rdx, r12
mov rcx, rdi
call fcn.14002d180
test al, al
je 0x140031a11
mov r8d, dword [r14 + 0x28]
add r8, r13
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.140031c20
test al, al
je 0x140031a11
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x140031a2f
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, rdi
call fcn.14002d3a0
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140032060
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