Function at 0x7ff65c523250
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov r15, r8
mov r12, rdx
mov r14, rcx
test rdx, rdx
je 0x7ff65c5235c1
xorps xmm0, xmm0
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call sub.vcruntime140.dll_memset
xor edi, edi
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x128]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov r9d, 0x28
mov dword [rsp + 0x28], edi
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], 0x40
mov dword [rbp + 0x128], edi
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x7ff65c5235c1
mov eax, 0x5a4d
cmp word [rbp - 0x70], ax
jne 0x7ff65c5235c1
movsxd rax, dword [rbp - 0x34]
add rax, r12
je 0x7ff65c5235c1
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x58], rax
mov r9d, 0x28
lea rax, [rbp + 0x128]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov dword [rsp + 0x28], edi
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x60], 0x108
mov dword [rbp + 0x128], edi
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x7ff65c5235c1
cmp dword [rbp - 0x30], 0x4550
jne 0x7ff65c5235c1
mov ebx, dword [rbp + 0x58]
test ebx, ebx
je 0x7ff65c5235c1
mov eax, dword [rbp + 0x5c]
test eax, eax
je 0x7ff65c5235c1
mov qword [rsp + 0x220], rsi
mov r9d, 4
mov qword [rsp + 0x1e0], r13
mov r8d, 0x3000
mov edx, eax
mov qword [rbp - 0x80], rax
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r9d, r13d
mov qword [rsp + 0x78], rbx
mov rsi, rax
mov rcx, r14
lea rax, [rbx + r12]
mov rdx, rsi
mov r8, rax
mov qword [rsp + 0x70], rax
call fcn.7ff65c523010
test al, al
je 0x7ff65c5235ac
mov ecx, dword [rsi + 0x24]
mov r13, rsi
mov eax, dword [rsi + 0x20]
sub r13, rbx
add rcx, r13
add rax, r13
mov qword [rbp + 0x138], rcx
mov ebx, edi
mov ecx, dword [rsi + 0x1c]
add rcx, r13
mov qword [rbp + 0x128], rax
mov qword [rsp + 0x68], rcx
cmp dword [rsi + 0x18], ebx
jbe 0x7ff65c5235ac
nop dword [rax]
mov r14d, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x58], rdi
mov edx, dword [rax + r14*4]
add rdx, r13
inc r8
cmp byte [rdx + r8], dil
jne 0x7ff65c523463
lea rcx, [rsp + 0x40]
call fcn.7ff65c4f3550
cmp qword [r15 + 0x18], 0xf
mov rdx, r15
jbe 0x7ff65c523483
mov rdx, qword [r15]
cmp qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
je 0x7ff65c5234f2
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x7ff65c5234db
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c5234d6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff65c52357c
call fcn.7ff65c618c48
inc ebx
cmp ebx, dword [rsi + 0x18]
jae 0x7ff65c5235ac
mov rax, qword [rbp + 0x128]
jmp 0x7ff65c523440
mov rax, qword [rbp + 0x138]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rax + r14*2]
mov ebx, dword [rcx + rax*4]
add rbx, r12
cmp rbx, qword [rsp + 0x70]
jb 0x7ff65c523534
mov rax, qword [rsp + 0x78]
add rax, qword [rbp - 0x80]
add rax, r12
cmp rbx, rax
ja 0x7ff65c523534
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
jmp 0x7ff65c523548
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rdi, rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x7ff65c523588
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c523583
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c523583
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
mov rax, rdi
mov rsi, qword [rsp + 0x220]
mov r13, qword [rsp + 0x1e0]
add rsp, 0x1e8
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
jmp 0x7ff65c52358b
xor eax, eax
add rsp, 0x1e8
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret