Function at 0x1400016f0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r12, r8
mov r15, rdx
test rdx, rdx
je 0x140001a0c
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, r15
call fcn.140001200
test al, al
je 0x140001a0c
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140001a0c
movsxd r8, dword [rbp - 0x54]
lea rdx, [rbp - 0x50]
add r8, r15
mov r9d, 0x108
call fcn.140001200
test al, al
je 0x140001a0c
cmp dword [rbp - 0x50], 0x4550
jne 0x140001a0c
mov ebx, dword [rbp + 0x38]
test ebx, ebx
je 0x140001a0c
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140001a0c
mov qword [rsp + 0x200], rsi
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x208], rdi
mov edx, eax
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rdi, rax
lea rax, [rbx + r15]
mov r8, rax
mov qword [rsp + 0x38], rax
mov rdx, rdi
call fcn.140001200
test al, al
jne 0x14000181f
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001943
mov ecx, dword [rdi + 0x24]
mov eax, dword [rdi + 0x20]
mov qword [rsp + 0x218], r13
mov r13, rdi
sub r13, rbx
mov qword [rsp + 0x1d0], r14
add rcx, r13
xor r14d, r14d
mov qword [rsp + 0x28], rcx
add rax, r13
mov ecx, dword [rdi + 0x1c]
mov ebx, r14d
add rcx, r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140001920
nop word [rax + rax]
mov esi, ebx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov edx, dword [rax + rsi*4]
add rdx, r13
inc r8
cmp byte [rdx + r8], r14b
jne 0x140001892
lea rcx, [rsp + 0x50]
call fcn.140001ac0
cmp qword [r12 + 0x18], 0x10
mov rdx, r12
jb 0x1400018b4
mov rdx, qword [r12]
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 0x140001970
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001910
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000190b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019f8
call fcn.140008104
mov rax, qword [rsp + 0x20]
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140001870
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r13, qword [rsp + 0x218]
mov r14, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x200]
mov rdi, qword [rsp + 0x208]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140007d60
add rsp, 0x1d8
pop r15
pop r12
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, r15
cmp rbx, qword [rsp + 0x38]
jb 0x1400019b0
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x48]
add rax, r15
cmp rbx, rax
ja 0x1400019b0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400019c4
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 0x140001a04
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019ff
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008104
mov rax, r14
jmp 0x140001933
xor eax, eax
jmp 0x140001953