Function at 0x140009d80
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 [0x14008c090]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rcx
mov r12, qword [rsp + 0x108]
mov qword [rsp + 0x50], r12
mov eax, 0x5a4d
cmp word [0x14008ccc0], ax
jne 0x14000a015
movsxd rdi, dword [0x14008ccfc]
lea rax, [0x14008ccc0]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x14000a015
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14000a015
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 0x14000a015
movzx ecx, word [rdi + 0x14]
mov r15d, dword [rcx + rdi + 0x24]
sub ebx, r15d
xor esi, esi
mov qword [rsp + 0x40], rsi
mov eax, ebx
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, r14
call fcn.1400099e0
mov r13, rax
mov rcx, rbp
test rax, rax
jne 0x140009e69
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000a015
mov r8d, dword [rdi + 0x54]
lea rdx, [0x14008ccc0]
call fcn.140026550
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140009ec3
add rbx, rdi
lea r12, [0x14008ccc0]
test dword [rbx + 0x14], 0x80
ja 0x140009eb0
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, rbp
call fcn.140026550
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140009e93
mov r12, qword [rsp + 0x50]
mov rsi, r13
sub r13, r15
mov rbx, r13
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14000a880
mov rdx, rbx
mov rcx, rax
call fcn.14000a050
mov rdx, r13
mov rcx, rbp
call fcn.14000a150
test al, al
je 0x14000a015
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14000a9d0
mov rdx, rax
mov rcx, r14
call fcn.14000a200
test al, al
je 0x140009fd3
lea rax, [r15 + rbp]
test rax, rax
je 0x140009fd3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009fd3
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], 0x33
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x28]
lea r8, [rsp + 0x58]
mov edx, 0x80862007
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140009fd3
mov r8d, dword [rdi + 0x28]
add r8, r13
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000a460
test al, al
je 0x140009fd3
test r12, r12
je 0x140009fbd
mov ecx, dword [rsp + 0x50]
mov dword [r12], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rsi
jmp 0x14000a017
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.1400035a0
test al, al
je 0x14000a015
mov rdx, rbx
mov rcx, r14
call fcn.1400036b0
test al, al
je 0x14000a015
mov rdx, rbx
mov rcx, r14
call fcn.1400037c0
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024200
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