Function at 0x140009930
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
mov r15, rcx
mov r12, qword [rsp + 0x118]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140009ba4
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140009ba4
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140009ba4
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 0x140009ba4
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x50], eax
sub ebx, eax
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, r15
call fcn.140009580
mov r13, rax
mov rcx, rbp
test rax, rax
jne 0x140009a03
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140009ba4
mov r8d, dword [rdi + 0x54]
mov rdx, r14
call fcn.140024d30
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140009a4d
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140009a3f
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r14
mov ecx, dword [rbx - 4]
add rcx, rbp
call fcn.140024d30
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140009a22
mov rsi, r13
mov r14d, dword [rsp + 0x50]
sub r13, r14
mov rbx, r13
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14000a410
mov rdx, rbx
mov rcx, rax
call fcn.140009be0
mov rdx, r13
mov rcx, rbp
call fcn.140009ce0
test al, al
je 0x140009ba4
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14000a560
mov rdx, rax
mov rcx, r15
call fcn.140009d90
test al, al
je 0x140009b62
lea rax, [r14 + rbp]
test rax, rax
je 0x140009b62
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009b62
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, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140009b62
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, r15
call fcn.140009ff0
test al, al
je 0x140009b62
test r12, r12
je 0x140009b4c
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 0x140009ba6
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, r15
call fcn.1400037f0
test al, al
je 0x140009ba4
mov rdx, rbx
mov rcx, r15
call fcn.140003900
test al, al
je 0x140009ba4
mov rdx, rbx
mov rcx, r15
call fcn.140003a10
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140022b50
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret