Function at 0x140006100
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r15, rdx
mov r12, rcx
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x60], rax
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x80], rsi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400061c0
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400061c0
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400061c0
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rsi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x1400061c0
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov r13d, ebx
jne 0x1400061ed
mov rbp, rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rbp
mov rcx, r12
call fcn.140002150
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000f0c0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140020d94], eax
jle 0x1400062b7
lea rcx, [0x140020d94]
call fcn.14000f190
cmp dword [0x140020d94], 0xffffffff
jne 0x1400062b7
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x15
lea rdx, [0x1400119f0]
lea rcx, [rsp + 0x40]
call fcn.140005b10
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x140020d18]
mov rcx, r12
call fcn.140002260
mov qword [0x140020df8], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400062ab
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400062a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f0e0
nop
lea rcx, [0x140020d94]
call fcn.14000f124
cmp qword [0x140020df8], 0
je 0x1400061a1
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.140004cc0
test al, al
je 0x1400061a1
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x1400061a4
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14000633f
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140006331
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140006314
mov r15d, dword [rsp + 0x30]
mov rsi, rbp
sub rsi, r15
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400071d0
mov rdx, rbx
mov rcx, rax
call fcn.140006430
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140007320
mov rdx, rax
mov rcx, r12
call fcn.140006530
test al, al
je 0x1400061a4
lea r8, [r15 + r14]
mov r9, r13
mov rdx, rbp
mov rcx, r12
call fcn.140001f30
test al, al
je 0x1400061a4
mov ebx, dword [rdi + 0x28]
add rbx, rsi
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, rbp
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.14000b6a0
test al, al
je 0x1400061a4
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140006910
test al, al
je 0x1400061a4
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14000640e
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbp
jmp 0x1400061c2