Function at 0x1400029f4
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 - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov qword [rsp + 0x20], r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140002c30
mov ebx, 0x40
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r14d, 0x108
lea rcx, [rbp - 0x50]
mov r8d, r14d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, ebx
lea rdx, [rsp + 0x70]
mov r8, rsi
mov rcx, rdi
call fcn.1400022e8
test al, al
je 0x140002c30
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140002c30
movsxd r8, dword [rbp - 0x54]
lea rdx, [rbp - 0x50]
add r8, rsi
mov r9d, r14d
mov rcx, rdi
call fcn.1400022e8
test al, al
je 0x140002c30
cmp dword [rbp - 0x50], 0x4550
jne 0x140002c30
mov r14d, dword [rbp + 0x38]
test r14d, r14d
je 0x140002c30
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140002c30
lea r9d, [rbx - 0x3c]
mov qword [rsp + 0x48], rax
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r12d
mov qword [rsp + 0x40], r14
mov rbx, rax
mov rcx, rdi
lea rax, [r14 + rsi]
mov rdx, rbx
mov r8, rax
mov qword [rsp + 0x38], rax
mov r15d, r14d
call fcn.1400022e8
test al, al
je 0x140002c1f
mov eax, dword [rbx + 0x20]
mov r14, rbx
mov r12d, dword [rbx + 0x24]
sub r14, r15
mov r13d, dword [rbx + 0x1c]
add rax, r14
add r12, r14
mov qword [rsp + 0x28], rax
add r13, r14
xor r15d, r15d
cmp dword [rbx + 0x18], r15d
jbe 0x140002c1f
mov r9d, dword [rax + r15*4]
and qword [rsp + 0x50], 0
add r9, r14
and qword [rsp + 0x60], 0
mov ecx, r15d
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x68], 0xf
inc rdi
cmp byte [r9 + rdi], 0
jne 0x140002b6b
lea rcx, [rsp + 0x50]
cmp rdi, 0xf
ja 0x140002b97
mov r8, rdi
mov qword [rsp + 0x60], rdi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rdi + 0x50], 0
jmp 0x140002b9f
mov rdx, rdi
call fcn.14000721c
mov rax, qword [rsp + 0x20]
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140002bb1
mov rdx, qword [rax]
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 0x140002c5c
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140002c0d
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c08
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002cd7
call fcn.14000d440
mov rax, qword [rsp + 0x28]
inc r15d
cmp r15d, dword [rbx + 0x18]
jb 0x140002b43
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14000d420
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x30]
mov r14d, 0x1000
movzx eax, word [r12 + rax*2]
cmp dword [r13 + rax*4], r14d
jbe 0x140002ca5
mov edi, dword [r13 + rax*4]
add rdi, rsi
cmp rdi, qword [rsp + 0x38]
jb 0x140002cde
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x48]
add rax, rsi
cmp rdi, rax
ja 0x140002cde
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140002cf6
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, r14
jb 0x140002cf1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cf1
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 0x140002ca7
call fcn.14000d440
mov rax, rdi
jmp 0x140002c32