Function at 0x14004a9e0
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 8
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1400f8fc4], eax
jle 0x14004aa53
lea rcx, [0x1400f8fc4]
call fcn.1400c42c0
cmp dword [0x1400f8fc4], 0xffffffff
jne 0x14004aa53
mov r8d, ebx
lea rcx, [0x1400d5228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400f8fc4]
mov qword [0x1400f9060], rax
call fcn.1400c4254
mov eax, dword [rdi]
cmp dword [0x1400f9084], eax
jle 0x14004aa8c
lea rcx, [0x1400f9084]
call fcn.1400c42c0
cmp dword [0x1400f9084], 0xffffffff
jne 0x14004aa8c
mov rax, qword [0x1400f9060]
lea rcx, [0x1400f9084]
mov qword [0x1400f9018], rax
call fcn.1400c4254
mov rax, qword [0x1400f9018]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ad05
mov eax, dword [rdi]
cmp dword [0x1400f907c], eax
jle 0x14004aae5
lea rcx, [0x1400f907c]
call fcn.1400c42c0
cmp dword [0x1400f907c], 0xffffffff
jne 0x14004aae5
mov rax, qword [0x1400f9018]
lea rcx, [0x1400f907c]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400f9060]
mov qword [0x1400f9040], rdx
call fcn.1400c4254
mov rax, qword [0x1400f9040]
cmp dword [rax], 0x4550
jne 0x14004ad05
mov eax, dword [rdi]
cmp dword [0x1400f8fd4], eax
mov qword [rsp + 0x60], rsi
jle 0x14004ab3c
lea rcx, [0x1400f8fd4]
call fcn.1400c42c0
cmp dword [0x1400f8fd4], 0xffffffff
jne 0x14004ab3c
mov rax, qword [0x1400f9040]
lea rcx, [0x1400f8fd4]
add rax, 0x108
mov qword [0x1400f8fa8], rax
call fcn.1400c4254
mov eax, dword [rdi]
cmp dword [0x1400f8fd8], eax
jle 0x14004ab75
lea rcx, [0x1400f8fd8]
call fcn.1400c42c0
cmp dword [0x1400f8fd8], 0xffffffff
jne 0x14004ab75
mov rax, qword [0x1400f8fa8]
lea rcx, [0x1400f8fd8]
mov qword [0x1400f9090], rax
call fcn.1400c4254
mov eax, dword [rdi]
cmp dword [0x1400f9038], eax
jle 0x14004abb2
lea rcx, [0x1400f9038]
call fcn.1400c42c0
cmp dword [0x1400f9038], 0xffffffff
jne 0x14004abb2
mov rax, qword [0x1400f9040]
lea rcx, [0x1400f9038]
movzx edx, word [rax + 6]
mov word [0x1400f9080], dx
call fcn.1400c4254
xchg byte [0x1400f9068], bl
mov rdx, qword [0x1400f8fa8]
xor esi, esi
test bl, bl
jne 0x14004ac26
movzx eax, word [0x1400f9080]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400f9090]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x14004ac26
lea r9, str.PAGE
nop word [rax + rax]
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x14004ac16
cmp rcx, 5
jne 0x14004ac00
jmp 0x14004ac26
add rdx, 0x28
mov qword [0x1400f8fa8], rdx
cmp rdx, r8
jb 0x14004abf0
mov eax, dword [rdi]
cmp dword [0x1400f8f9c], eax
jle 0x14004ac70
lea rcx, [0x1400f8f9c]
call fcn.1400c42c0
cmp dword [0x1400f8f9c], 0xffffffff
jne 0x14004ac69
mov rax, qword [0x1400f8fa8]
lea rcx, [0x1400f8f9c]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400f9060]
mov qword [0x1400f90a0], rdx
call fcn.1400c4254
mov rdx, qword [0x1400f8fa8]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x1400f90a0]
movdqa xmm0, xmmword [0x1400e1700]
movdqa xmm1, xmmword [0x1400e16e0]
movdqu xmmword [rsp + 0x20], xmm0
lea rbx, [rcx + r10]
mov rax, rbx
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x14004acea
lea r11, [rbx - 0x10]
nop word [rax + rax]
mov r8, r10
lea rdx, [rsp + 0x20]
nop dword [rax + rax]
movzx r9d, word [rdx]
movzx ecx, r9w
shr cx, 8
cmp cl, 0x3f
je 0x14004acd6
cmp byte [r8], r9b
jne 0x14004acfb
inc r8
lea rcx, [rsp + 0x40]
add rdx, 2
cmp rdx, rcx
jne 0x14004acc0
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x14004ad07
cmp r10, r11
je 0x14004acea
inc r10
jmp 0x14004acb0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c41f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret