Function at 0x140003300
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15, qword [0x140019970]
mov rsi, r8
mov rdi, rcx
test r15, r15
je 0x140003640
mov rcx, qword [0x140019a00]
xor r13d, r13d
test rcx, rcx
je 0x140003365
mov rax, qword [0x140019a10]
test rax, rax
jne 0x1400034ea
xorps xmm0, xmm0
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rdi
call fcn.140002d70
test eax, eax
je 0x140003640
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002cb0
test eax, eax
je 0x140003640
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x140003640
xor ecx, ecx
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_SetLastError]
movsxd rdx, dword [rsp + 0x7c]
lea r8, [rsp + 0x30]
add rdx, r15
mov rcx, rdi
call fcn.140002d70
test eax, eax
je 0x140003640
mov rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x80]
mov r9d, 0x108
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002cb0
test eax, eax
je 0x140003640
cmp dword [rbp - 0x80], 0x4550
jne 0x140003640
mov eax, dword [rbp + 8]
mov edx, dword [rbp + 0xc]
mov qword [0x140019a00], rax
mov qword [0x140019a08], rdx
test rax, rax
je 0x140003640
test rdx, rdx
je 0x140003640
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, qword [0x140019a00]
xor ecx, ecx
mov r12, qword [0x140019a08]
mov r14, rax
mov qword [0x140019a10], rax
add rbx, r15
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140002d70
test eax, eax
je 0x140003624
mov rdx, qword [rsp + 0x30]
mov r9d, r12d
mov r8, r14
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002cb0
test eax, eax
je 0x140003624
mov rcx, qword [0x140019a00]
mov rax, qword [0x140019a10]
mov r12d, dword [rax + 0x20]
mov r14, rax
mov r13d, dword [rax + 0x24]
sub r14, rcx
mov ecx, dword [rax + 0x1c]
add r12, r14
add rcx, r14
add r13, r14
xor ebx, ebx
mov qword [rsp + 0x30], rcx
cmp dword [rax + 0x18], ebx
jbe 0x140003640
mov edx, dword [r12 + rbx*4]
lea rcx, [rsp + 0x40]
add rdx, r14
call fcn.140001250
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140003532
mov rdx, qword [rsi]
cmp qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400035a1
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000358a
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003585
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003613
call fcn.140008b74
mov rax, qword [0x140019a10]
inc ebx
cmp ebx, dword [rax + 0x18]
jb 0x140003514
jmp 0x140003640
movzx eax, word [r13 + rbx*2]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1400035dd
mov rdx, qword [0x140019a00]
lea rbx, [r15 + rcx]
lea rax, [r15 + rdx]
cmp rbx, rax
jb 0x1400035df
mov rcx, qword [0x140019a08]
add rcx, r15
add rcx, rdx
cmp rbx, rcx
ja 0x1400035df
xor ebx, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000361f
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000361a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000361a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008b74
mov rax, rbx
jmp 0x140003642
mov rcx, qword [0x140019a10]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x140019a10], r13
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400089f0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret