Function at 0x14001e860
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 [0x1400e80c0]
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 0x14001ecad
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x14001ecad
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x14001ecad
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 0x14001ecad
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov ecx, ebx
mov qword [rbp - 0x61], rcx
je 0x14001ec91
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x140124374], eax
jle 0x14001e9cc
lea rcx, [0x140124374]
call fcn.140082f3c
cmp dword [0x140124374], 0xffffffff
jne 0x14001e9c8
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [r13 + 0x15]
lea rdx, [0x14009f7f0]
lea rcx, [rbp - 0x59]
call fcn.1400188d0
nop
lea r8, [rbp - 0x59]
mov rdx, qword [0x1400ee848]
mov rcx, rdi
call fcn.14001a4c0
mov qword [0x1401243d8], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14001e9bc
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e9b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001e9b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082e8c
nop
lea rcx, [0x140124374]
call fcn.140082ed0
mov rcx, qword [rbp - 0x61]
cmp qword [0x1401243d8], 0
je 0x14001ec91
mov qword [rbp - 0x69], r13
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14001bfc0
test al, al
je 0x14001ec91
mov r13, qword [rbp - 0x69]
test r13, r13
je 0x14001ec91
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 0x14001ea5e
add rbx, r15
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x14001ea4d
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 0x14001ea30
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 0x14001eb45
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x14001eb45
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 0x14001eabc
jmp 0x14001eb4e
lea rbx, [r12 + rcx]
mov edi, dword [rax + r12 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, rdi
jae 0x14001eb3f
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14001eb3f
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 0x14001eb1c
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 0x14001eb30
lea r8, [rbp - 0x59]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.14001da40
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 9]
cmp rbx, rdi
jb 0x14001ead4
mov rbx, qword [rbp - 0x19]
jmp 0x14001eb5d
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x14001ebc3
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r13d, 0xa000
xor r14d, r14d
mov edx, r14d
cmp dword [r8], r14d
jbe 0x14001ebae
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 0x14001eba7
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x14001eb80
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14001eb74
mov r13, qword [rbp - 0x69]
mov r14, qword [rbp - 0x39]
test rbx, rbx
je 0x14001ec1e
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 0x14001ec16
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ec16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140082e8c
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.14001d070
mov rdx, rax
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.14001ece0
test al, al
je 0x14001ec91
mov r8, qword [rbp - 0x29]
add r8, r12
mov r9, qword [rbp - 0x61]
mov rdx, r13
mov rcx, rdi
call fcn.14001a190
test al, al
je 0x14001ec91
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.14001eeb0
test al, al
je 0x14001ec91
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x14001ecaf
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, rdi
call fcn.14001a3b0
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140082bf0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret