Function at 0x7ff7cecec6f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x7ff7ced83080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], r9
mov r14, rcx
mov eax, 0x5a4d
cmp word [0x7ff7ced834e0], ax
jne 0x7ff7cecec979
movsxd rdi, dword [0x7ff7ced8351c]
lea rsi, [0x7ff7ced834e0]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x7ff7cecec979
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x7ff7cecec979
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x7ff7cecec979
movzx ecx, word [rdi + 0x14]
mov r15d, dword [rcx + rdi + 0x24]
sub ebx, r15d
xor eax, eax
mov qword [rsp + 0x50], rax
mov r13d, ebx
mov qword [rsp + 0x40], r13
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, r14
call fcn.7ff7cecec2c0
mov r12, rax
mov rcx, rbp
test rax, rax
jne 0x7ff7cecec7d2
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.kernel32.dll_VirtualFree]
jmp 0x7ff7cecec979
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy_1
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x7ff7cecec830
add rbx, rdi
lea r13, [0x7ff7ced834e0]
nop word [rax + rax]
test dword [rbx + 0x14], 0x80
ja 0x7ff7cecec81d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy_1
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x7ff7cecec800
mov r13, qword [rsp + 0x40]
mov rsi, r12
sub r12, r15
mov rbx, r12
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.7ff7ceced6e0
mov rdx, rbx
mov rcx, rax
call fcn.7ff7cecec9b0
mov rdx, r12
mov rcx, rbp
call fcn.7ff7cececab0
test al, al
je 0x7ff7cecec979
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.7ff7ceced830
mov rdx, rax
mov rcx, r14
call fcn.7ff7cececb60
mov rbx, qword [rsp + 0x50]
test al, al
je 0x7ff7cecec93c
lea rax, [r15 + rbp]
test rax, rax
je 0x7ff7cecec93c
test r13, r13
je 0x7ff7cecec93c
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], 0x33
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 0x28]
lea r8, [rsp + 0x58]
mov edx, 0x80862007
mov rcx, r14
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x7ff7cecec93c
mov r8d, dword [rdi + 0x28]
add r8, r12
mov dword [rsp + 0x50], r15d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.7ff7cecece70
test al, al
je 0x7ff7cecec93c
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rax, rsi
jmp 0x7ff7cecec97b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.kernel32.dll_VirtualFree]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.7ff7cece7c50
test al, al
je 0x7ff7cecec979
mov rdx, rbx
mov rcx, r14
call fcn.7ff7cece7d90
test al, al
je 0x7ff7cecec979
mov rdx, rbx
mov rcx, r14
call fcn.7ff7cece7ed0
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.7ff7ced50860
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret