Function at 0x14000306c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x20], r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140003257
mov ebx, 0x40
lea rcx, [rbp + 0x60]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r14d, 0x108
lea rcx, [rsp + 0x50]
mov r8d, r14d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, ebx
lea r8, [rbp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.140002994
test eax, eax
je 0x140003257
mov eax, 0x5a4d
cmp word [rbp + 0x60], ax
jne 0x140003257
movsxd rdx, dword [rbp + 0x9c]
lea r8, [rsp + 0x50]
add rdx, rsi
mov r9d, r14d
mov rcx, rdi
call fcn.140002994
test eax, eax
je 0x140003257
cmp dword [rsp + 0x50], 0x4550
jne 0x140003257
mov r14d, dword [rbp - 0x28]
test r14d, r14d
je 0x140003257
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x140003257
lea r9d, [rbx - 0x3c]
mov qword [rsp + 0x40], rax
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r15d
mov qword [rsp + 0x38], r14
mov rbx, rax
mov rcx, rdi
lea rax, [r14 + rsi]
mov r8, rbx
mov rdx, rax
mov qword [rsp + 0x30], rax
call fcn.140002994
test eax, eax
je 0x140003246
mov eax, dword [rbx + 0x20]
mov rdi, rbx
mov r15d, dword [rbx + 0x24]
sub rdi, r14
mov r12d, dword [rbx + 0x1c]
add rax, rdi
add r15, rdi
mov qword [rsp + 0x28], rax
add r12, rdi
xor r14d, r14d
cmp dword [rbx + 0x18], r14d
jbe 0x140003246
mov edx, dword [rax + r14*4]
lea rcx, [rbp + 0x60]
add rdx, rdi
call fcn.1400047d0
mov rax, qword [rsp + 0x20]
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400031dd
mov rdx, qword [rax]
cmp qword [rbp + 0x78], 0x10
lea rcx, [rbp + 0x60]
cmovae rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003283
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140003234
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000322f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400032f5
call fcn.14000ee94
mov rax, qword [rsp + 0x28]
inc r14d
cmp r14d, dword [rbx + 0x18]
jb 0x1400031bb
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14000ee70
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [r15 + r14*2]
mov r14d, 0x1000
cmp dword [r12 + rax*4], r14d
jbe 0x1400032c5
mov edi, dword [r12 + rax*4]
add rdi, rsi
cmp rdi, qword [rsp + 0x30]
jb 0x1400032fc
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x40]
add rax, rsi
cmp rdi, rax
ja 0x1400032fc
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140003314
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, r14
jb 0x14000330f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000330f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400032c7
call fcn.14000ee94
mov rax, rdi
jmp 0x140003259