Function at 0x1400030f0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14014b080]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r15, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
je 0x140003402
xorps xmm0, xmm0
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x40
lea rdx, [rsp + 0x70]
mov r8, r12
mov rcx, rbx
call fcn.140002920
test al, al
je 0x140003402
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140003402
movsxd r8, dword [rbp - 0x54]
lea rdx, [rbp - 0x50]
add r8, r12
mov r9d, 0x108
mov rcx, rbx
call fcn.140002920
test al, al
je 0x140003402
cmp dword [rbp - 0x50], 0x4550
jne 0x140003402
mov esi, dword [rbp + 0x38]
test esi, esi
je 0x140003402
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140003402
mov qword [rsp + 0x228], rdi
mov r9d, 4
mov qword [rsp + 0x1d0], r14
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r14d
mov qword [rsp + 0x40], rsi
mov rdi, rax
mov rcx, rbx
lea rax, [rsi + r12]
mov rdx, rdi
mov r8, rax
mov qword [rsp + 0x38], rax
call fcn.140002920
test al, al
jne 0x14000322d
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140003338
mov ecx, dword [rdi + 0x24]
xor r14d, r14d
mov eax, dword [rdi + 0x20]
mov ebx, r14d
mov qword [rsp + 0x1d8], r13
mov r13, rdi
sub r13, rsi
add rcx, r13
add rax, r13
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdi + 0x1c]
add rcx, r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14000331d
nop dword [rax + rax]
mov esi, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x68], r14
mov edx, dword [rax + rsi*4]
add rdx, r13
inc r8
cmp byte [rdx + r8], r14b
jne 0x140003291
lea rcx, [rsp + 0x50]
call fcn.140005ab0
cmp qword [r15 + 0x18], 0x10
mov rdx, r15
jb 0x1400032b1
mov rdx, qword [r15]
cmp qword [rsp + 0x68], 0x10
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003366
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000330d
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003308
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400033ee
call fcn.1400e7f64
mov rax, qword [rsp + 0x20]
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140003270
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r13, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x228]
mov r14, qword [rsp + 0x1d0]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400e7a20
add rsp, 0x1e0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, word [rax + rsi*2]
mov ebx, dword [rcx + rax*4]
add rbx, r12
cmp rbx, qword [rsp + 0x38]
jb 0x1400033a6
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x48]
add rax, r12
cmp rbx, rax
ja 0x1400033a6
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400033ba
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400033fa
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033f5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7f64
mov rax, r14
jmp 0x140003330
xor eax, eax
jmp 0x140003348