Function at 0x14004a8a0
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 [0x140069040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], r9
mov r14, rcx
mov eax, 0x5a4d
cmp word [0x1400694a0], ax
jne 0x14004ab29
movsxd rdi, dword [0x1400694dc]
lea rax, [0x1400694a0]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x14004ab29
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14004ab29
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 0x14004ab29
movzx ecx, word [rdi + 0x14]
mov r15d, dword [rcx + rdi + 0x24]
sub ebx, r15d
xor esi, esi
mov qword [rsp + 0x50], rsi
mov r13d, ebx
mov qword [rsp + 0x40], r13
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, r14
call fcn.14004a490
mov r12, rax
mov rcx, rbp
test rax, rax
jne 0x14004a982
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14004ab29
mov r8d, dword [rdi + 0x54]
lea rdx, [0x1400694a0]
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14004a9e0
add rbx, rdi
lea r13, [0x1400694a0]
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x14004a9cd
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
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14004a9b0
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.14004b880
mov rdx, rbx
mov rcx, rax
call fcn.14004ab60
mov rdx, r12
mov rcx, rbp
call fcn.14004ac60
test al, al
je 0x14004ab29
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14004b9d0
mov rdx, rax
mov rcx, r14
call fcn.14004ad10
mov rbx, qword [rsp + 0x50]
test al, al
je 0x14004aaec
lea rax, [r15 + rbp]
test rax, rax
je 0x14004aaec
test r13, r13
je 0x14004aaec
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 0x14004aaec
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.14004b020
test al, al
je 0x14004aaec
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rsi
jmp 0x14004ab2b
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.140045ec0
test al, al
je 0x14004ab29
mov rdx, rbx
mov rcx, r14
call fcn.140045ff0
test al, al
je 0x14004ab29
mov rdx, rbx
mov rcx, r14
call fcn.140046120
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004d080
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