Function at 0x14000b580
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, rcx
mov qword [rsp + 0x38], rcx
mov eax, 0x5a4d
cmp word [0x14001e050], ax
jne 0x14000b629
movsxd rdi, dword [0x14001e08c]
lea rsi, [0x14001e050]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x14000b629
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14000b629
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x14000b629
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov r13d, ebx
jne 0x14000b649
xor ebp, ebp
mov r14, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r12
call fcn.140007860
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebp, ebp
mov eax, dword [rcx + rax]
cmp dword [0x1400208d4], eax
jle 0x14000b742
lea rcx, [0x1400208d4]
call fcn.14000dae8
cmp dword [0x1400208d4], 0xffffffff
jne 0x14000b742
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0xf
lea ecx, [rbp + 0x20]
call fcn.14000db60
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x15
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [0x140010c10]
movups xmmword [rax], xmm0
mov ecx, dword [0x140010c20]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140010c24]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], bpl
lea r8, [rsp + 0x40]
mov rdx, qword [0x140020888]
mov rcx, r12
call fcn.140007980
mov qword [0x140020938], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000b736
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b730
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b730
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000debc
nop
lea rcx, [0x1400208d4]
call fcn.14000da7c
cmp qword [0x140020938], 0
je 0x14000b60a
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14000a500
test al, al
je 0x14000b60a
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x14000b60d
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, ebp
cmp bp, word [rdi + 6]
jae 0x14000b7d6
add rbx, rdi
lea r12, [0x14001e050]
test dword [rbx + 0x14], 0x80
ja 0x14000b7c3
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14000b7a6
mov r12, qword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
mov rsi, r14
sub rsi, rax
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14000c120
mov rdx, rbx
mov rcx, rax
call fcn.14000b880
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14000c270
mov rdx, rax
mov rcx, r12
call fcn.14000b980
test al, al
je 0x14000b60d
mov r8d, dword [rsp + 0x30]
add r8, r15
mov r9, r13
mov rdx, r14
mov rcx, r12
call fcn.140007640
test al, al
je 0x14000b60d
mov r8d, dword [rdi + 0x28]
add r8, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.14000bca0
test al, al
je 0x14000b60d
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x14000b62b