Function at 0x140006d90
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r15, r8
mov r13, rdx
mov r14, rcx
test rdx, rdx
je 0x140007119
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov qword [rsp + 0x70], 0x33
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x30], rax
mov r9d, 0x28
mov dword [rsp + 0x28], esi
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], 0x40
mov dword [rsp + 0x68], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007119
mov eax, 0x5a4d
cmp word [rbp - 0x60], ax
jne 0x140007119
movsxd rax, dword [rbp - 0x24]
lea r8, [rsp + 0x70]
add rax, r13
mov qword [rsp + 0x38], rsi
mov qword [rbp - 0x80], rax
mov r9d, 0x28
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], 0x33
mov qword [rbp - 0x78], rax
mov edx, 0x80862007
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x30], rax
mov rcx, r14
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x70], 0x108
mov dword [rsp + 0x68], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007119
cmp dword [rbp - 0x20], 0x4550
jne 0x140007119
mov ebx, dword [rbp + 0x68]
test ebx, ebx
je 0x140007119
mov eax, dword [rbp + 0x6c]
test eax, eax
je 0x140007119
mov qword [rsp + 0x258], rdi
mov r9d, 4
mov qword [rsp + 0x200], r12
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x70]
mov rdi, rax
mov qword [rsp + 0x70], 0x33
lea rax, [rbx + r13]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], rax
mov r9d, 0x28
mov qword [rbp - 0x80], rax
mov edx, 0x80862007
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rax
mov rcx, r14
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], r12
mov dword [rsp + 0x68], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007104
mov ecx, dword [rdi + 0x24]
mov r12, rdi
mov eax, dword [rdi + 0x20]
sub r12, rbx
add rcx, r12
add rax, r12
mov qword [rsp + 0x40], rcx
mov ebx, esi
mov ecx, dword [rdi + 0x1c]
add rcx, r12
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140007104
mov r14d, ebx
lea rcx, [rsp + 0x70]
mov edx, dword [rax + r14*4]
add rdx, r12
call fcn.140001af0
cmp qword [r15 + 0x18], 0xf
mov rdx, r15
jbe 0x140006fd2
mov rdx, qword [r15]
cmp qword [rbp - 0x78], 0xf
lea rcx, [rsp + 0x70]
cmova rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000703d
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140007028
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007023
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070c5
call fcn.14000c49c
inc ebx
cmp ebx, dword [rdi + 0x18]
jae 0x140007104
mov rax, qword [rsp + 0x68]
jmp 0x140006fb1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rax + r14*2]
mov ebx, dword [rcx + rax*4]
add rbx, r13
cmp rbx, qword [rsp + 0x50]
jb 0x14000707e
mov rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x60]
add rax, r13
cmp rbx, rax
ja 0x14000707e
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140007092
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, rbx
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400070d1
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400070cc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400070cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c49c
mov rax, rsi
mov rdi, qword [rsp + 0x258]
mov r12, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000c200
add rsp, 0x208
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400070d4
xor eax, eax
jmp 0x1400070e4