Function at 0x140007310
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140105080]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r14, r8
mov r12, rdx
test rdx, rdx
je 0x1400074ff
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x30], xmm0
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
lea rax, [rbp - 0x60]
mov rsi, r12
mov ebx, r15d
sub rsi, rax
nop word [rax + rax]
mov rcx, qword [0x14010da68]
lea rdi, [rbp - 0x60]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x68]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r15
add rdi, rbx
mov dword [rsp + 0x28], Ordinal_50
mov r9d, Ordinal_50
mov qword [rsp + 0x68], r15
mov edx, 0x80002048
mov qword [rsp + 0x78], r15
movdqu xmmword [rbp - 0x7c], xmm0
lea rax, [rsi + rdi]
mov dword [rbp - 0x6c], r15d
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400074ff
movzx eax, byte [rbp - 0x7c]
inc rbx
mov byte [rdi], al
cmp rbx, 0x40
jb 0x140007380
mov eax, 0x5a4d
cmp word [rbp - 0x60], ax
jne 0x1400074ff
movsxd rsi, dword [rbp - 0x24]
lea rax, [rbp - 0x20]
add rsi, r12
mov rbx, r15
sub rsi, rax
nop dword [rax]
mov rcx, qword [0x14010da68]
lea rdi, [rbp - 0x20]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x68]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r15
add rdi, rbx
mov dword [rsp + 0x28], Ordinal_50
mov r9d, Ordinal_50
mov qword [rsp + 0x68], r15
mov edx, 0x80002048
mov qword [rsp + 0x78], r15
movdqu xmmword [rbp - 0x7c], xmm0
lea rax, [rsi + rdi]
mov dword [rbp - 0x6c], r15d
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400074ff
movzx eax, byte [rbp - 0x7c]
inc rbx
mov byte [rdi], al
cmp rbx, 0x108
jb 0x140007420
cmp dword [rbp - 0x20], 0x4550
jne 0x1400074ff
mov ebx, dword [rbp + 0x68]
test ebx, ebx
je 0x1400074ff
mov eax, dword [rbp + 0x6c]
test eax, eax
je 0x1400074ff
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, esi
mov qword [rsp + 0x58], rbx
mov rdi, rax
lea rax, [rbx + r12]
mov rdx, rax
mov qword [rsp + 0x50], rax
mov r8, rdi
call fcn.140007000
test al, al
jne 0x140007506
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400075d7
mov eax, dword [rdi + 0x24]
mov r15, rdi
sub r15, rbx
mov qword [rsp + 0x240], r13
mov r13d, dword [rdi + 0x20]
add rax, r15
mov qword [rsp + 0x40], rax
add r13, r15
mov eax, dword [rdi + 0x1c]
xor ebx, ebx
add rax, r15
mov qword [rsp + 0x48], rax
cmp dword [rdi + 0x18], ebx
jbe 0x1400075bc
nop dword [rax]
mov edx, dword [r13 + rbx*4]
lea rcx, [rsp + 0x68]
add rdx, r15
call fcn.14000aa00
cmp qword [r14 + 0x18], 0xf
mov rdx, r14
jbe 0x14000755f
mov rdx, qword [r14]
cmp qword [rbp - 0x80], 0xf
lea rcx, [rsp + 0x68]
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400075f8
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400075b5
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075b0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007672
call fcn.1400c9560
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140007540
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r13, qword [rsp + 0x240]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400c9540
add rsp, 0x200
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rax + rbx*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x14000763d
lea rbx, [r12 + rcx]
cmp rbx, qword [rsp + 0x50]
jb 0x140007679
mov rax, qword [rsp + 0x58]
add rax, rsi
add rax, r12
cmp rbx, rax
ja 0x140007679
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140007691
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000768c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000768c
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, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000763f
call fcn.1400c9560
mov rax, rbx
jmp 0x1400075cf