Function at 0x1400013d0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x1d0
mov rax, qword [0x14025e900]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r15, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400016ba
xorps xmm0, xmm0
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call sub.VCRUNTIME140.dll_memset
lea rcx, [fcn.140001c00]
call fcn.140001e90
mov rcx, qword [rsp + 0x1e8]
call fcn.140001d00
lea rcx, [fcn.1400017d0]
call fcn.140001e90
mov r8, qword [0x14025efc8]
lea r9, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x20], 0x40
mov ecx, 4
call fcn.1400017d0
lea rcx, [fcn.1400017d0]
call fcn.140001d00
mov rcx, qword [rsp + 0x1e8]
call fcn.140001e90
lea rcx, [fcn.140001c00]
call fcn.140001d00
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400016ba
lea rcx, [fcn.140001c00]
call fcn.140001e90
movsxd rbx, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0x1e8]
add rbx, rbp
call fcn.140001d00
lea rcx, [fcn.1400017d0]
call fcn.140001e90
mov r8, qword [0x14025efc8]
lea r9, [rsp + 0x90]
mov rdx, rbx
mov qword [rsp + 0x20], 0x108
mov ecx, 4
call fcn.1400017d0
lea rcx, [fcn.1400017d0]
call fcn.140001d00
mov rcx, qword [rsp + 0x1e8]
call fcn.140001e90
lea rcx, [fcn.140001c00]
call fcn.140001d00
cmp dword [rsp + 0x90], 0x4550
jne 0x1400016ba
mov ebx, dword [rsp + 0x118]
test ebx, ebx
je 0x1400016ba
mov eax, dword [rsp + 0x11c]
test eax, eax
je 0x1400016ba
mov qword [rsp + 0x1c8], rdi
mov r9d, 4
mov qword [rsp + 0x1c0], r12
mov r8d, 0x3000
mov qword [rsp + 0x1b8], r13
mov edx, eax
mov qword [rsp + 0x1b0], r14
xor ecx, ecx
mov qword [rsp + 0x200], rsi
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [fcn.140001c00]
mov rdi, rax
call fcn.140001e90
lea rax, [rbx + rbp]
mov qword [rsp + 0x48], rbx
mov rdx, rax
mov qword [rsp + 0x40], rax
mov r9d, r13d
mov r8, rdi
mov ecx, 4
call fcn.140001c00
lea rcx, [fcn.140001c00]
call fcn.140001d00
mov eax, dword [rdi + 0x24]
mov r14, rdi
mov r12d, dword [rdi + 0x20]
sub r14, rbx
add rax, r14
add r12, r14
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov eax, dword [rdi + 0x1c]
add rax, r14
mov qword [rsp + 0x38], rax
cmp dword [rdi + 0x18], ebx
jbe 0x14000161b
nop dword [rax + rax]
mov ecx, dword [r12 + rbx*4]
mov rdx, r15
add rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001672
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140001600
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov r12, qword [rsp + 0x1c0]
mov rdi, qword [rsp + 0x1c8]
mov r13, qword [rsp + 0x1b8]
mov r14, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14012a5c0
add rsp, 0x1d0
pop r15
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rax + rbx*2]
mov ebx, dword [rcx + rax*4]
add rbx, rbp
cmp rbx, qword [rsp + 0x40]
jb 0x1400016a1
mov rax, qword [rsp + 0x48]
add rax, r13
add rax, rbp
cmp rbx, rax
jbe 0x14000161b
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x14000162e
xor eax, eax
jmp 0x140001656