Function at 0x1400034e0
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 [0x140019a88]
mov rsi, r8
mov rdi, rcx
test r15, r15
je 0x140003820
mov rcx, qword [0x140019ab0]
xor r13d, r13d
test rcx, rcx
je 0x140003545
mov rax, qword [0x140019aa8]
test rax, rax
jne 0x1400036cc
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], 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.140002f50
test eax, eax
je 0x140003820
mov rdx, qword [rsp + 0x30]
lea r8, [rbp + 0x50]
mov r9d, 0x40
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002e90
test eax, eax
je 0x140003820
mov eax, 0x5a4d
cmp word [rbp + 0x50], ax
jne 0x140003820
xor ecx, ecx
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_SetLastError]
movsxd rdx, dword [rbp + 0x8c]
lea r8, [rsp + 0x30]
add rdx, r15
mov rcx, rdi
call fcn.140002f50
test eax, eax
je 0x140003820
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x108
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002e90
test eax, eax
je 0x140003820
cmp dword [rsp + 0x40], 0x4550
jne 0x140003820
mov eax, dword [rbp - 0x38]
mov edx, dword [rbp - 0x34]
mov qword [0x140019ab0], rax
mov qword [0x140019ac8], rdx
test rax, rax
je 0x140003820
test rdx, rdx
je 0x140003820
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, qword [0x140019ab0]
xor ecx, ecx
mov r12d, dword [0x140019ac8]
mov r14, rax
mov qword [0x140019aa8], 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.140002f50
test eax, eax
je 0x140003804
mov rdx, qword [rsp + 0x30]
mov r9d, r12d
mov r8, r14
mov byte [rsp + 0x20], r13b
mov rcx, rdi
call fcn.140002e90
test eax, eax
je 0x140003804
mov rcx, qword [0x140019ab0]
mov rax, qword [0x140019aa8]
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 0x140003820
nop word [rax + rax]
mov edx, dword [r12 + rbx*4]
lea rcx, [rbp + 0x50]
add rdx, r14
call fcn.140006710
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000371d
mov rdx, qword [rsi]
cmp qword [rbp + 0x68], 0xf
lea rcx, [rbp + 0x50]
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003783
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140003770
mov rcx, qword [rbp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000376b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037f3
call fcn.14000964c
mov rax, qword [0x140019aa8]
inc ebx
cmp ebx, dword [rax + 0x18]
jb 0x140003700
jmp 0x140003820
movzx eax, word [r13 + rbx*2]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1400037bf
mov rdx, qword [0x140019ab0]
lea rbx, [r15 + rcx]
lea rax, [r15 + rdx]
cmp rbx, rax
jb 0x1400037c1
mov rcx, qword [0x140019ac8]
add rcx, r15
add rcx, rdx
cmp rbx, rcx
ja 0x1400037c1
xor ebx, ebx
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1400037ff
mov rcx, qword [rbp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000964c
mov rax, rbx
jmp 0x140003822
mov rcx, qword [0x140019aa8]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x140019aa8], r13
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400095f0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret