Function at 0x14004a680
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f8040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 8
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1400faa00], eax
jle 0x14004a6f3
lea rcx, [0x1400faa00]
call fcn.1400c5c70
cmp dword [0x1400faa00], 0xffffffff
jne 0x14004a6f3
mov r8d, ebx
lea rcx, [0x1400d60e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400faa00]
mov qword [0x1400fa9f8], rax
call fcn.1400c5c04
mov eax, dword [rdi]
cmp dword [0x1400faa1c], eax
jle 0x14004a72c
lea rcx, [0x1400faa1c]
call fcn.1400c5c70
cmp dword [0x1400faa1c], 0xffffffff
jne 0x14004a72c
mov rax, qword [0x1400fa9f8]
lea rcx, [0x1400faa1c]
mov qword [0x1400faa70], rax
call fcn.1400c5c04
mov rax, qword [0x1400faa70]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a9c5
mov eax, dword [rdi]
cmp dword [0x1400faa30], eax
jle 0x14004a785
lea rcx, [0x1400faa30]
call fcn.1400c5c70
cmp dword [0x1400faa30], 0xffffffff
jne 0x14004a785
mov rax, qword [0x1400faa70]
lea rcx, [0x1400faa30]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400fa9f8]
mov qword [0x1400faa88], rdx
call fcn.1400c5c04
mov rax, qword [0x1400faa88]
cmp dword [rax], 0x4550
jne 0x14004a9c5
mov eax, dword [rdi]
cmp dword [0x1400faa20], eax
mov qword [rsp + 0x70], rsi
jle 0x14004a7dc
lea rcx, [0x1400faa20]
call fcn.1400c5c70
cmp dword [0x1400faa20], 0xffffffff
jne 0x14004a7dc
mov rax, qword [0x1400faa88]
lea rcx, [0x1400faa20]
add rax, 0x108
mov qword [0x1400faad8], rax
call fcn.1400c5c04
mov eax, dword [rdi]
cmp dword [0x1400faac8], eax
jle 0x14004a815
lea rcx, [0x1400faac8]
call fcn.1400c5c70
cmp dword [0x1400faac8], 0xffffffff
jne 0x14004a815
mov rax, qword [0x1400faad8]
lea rcx, [0x1400faac8]
mov qword [0x1400fa9e0], rax
call fcn.1400c5c04
mov eax, dword [rdi]
cmp dword [0x1400faacc], eax
jle 0x14004a852
lea rcx, [0x1400faacc]
call fcn.1400c5c70
cmp dword [0x1400faacc], 0xffffffff
jne 0x14004a852
mov rax, qword [0x1400faa88]
lea rcx, [0x1400faacc]
movzx edx, word [rax + 6]
mov word [0x1400fa9f0], dx
call fcn.1400c5c04
xchg byte [0x1400faa2c], bl
mov rdx, qword [0x1400faad8]
xor esi, esi
test bl, bl
jne 0x14004a8c6
movzx eax, word [0x1400fa9f0]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400fa9e0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x14004a8c6
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 0x14004a8b6
cmp rcx, 5
jne 0x14004a8a0
jmp 0x14004a8c6
add rdx, 0x28
mov qword [0x1400faad8], rdx
cmp rdx, r8
jb 0x14004a890
mov eax, dword [rdi]
cmp dword [0x1400fa9d4], eax
jle 0x14004a910
lea rcx, [0x1400fa9d4]
call fcn.1400c5c70
cmp dword [0x1400fa9d4], 0xffffffff
jne 0x14004a909
mov rax, qword [0x1400faad8]
lea rcx, [0x1400fa9d4]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400fa9f8]
mov qword [0x1400faab0], rdx
call fcn.1400c5c04
mov rdx, qword [0x1400faad8]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x1400faab0]
movdqa xmm0, xmmword [0x1400e2ab0]
movdqa xmm1, xmmword [0x1400e2840]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea rbx, [rcx + r10]
mov dword [rsp + 0x48], 0x78c07885
mov rax, rbx
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x14004a9aa
lea r11, [rbx - 0x17]
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 0x14004a996
cmp byte [r8], r9b
jne 0x14004a9bb
inc r8
lea rcx, [rsp + 0x4e]
add rdx, 2
cmp rdx, rcx
jne 0x14004a980
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x14004a9c7
cmp r10, r11
je 0x14004a9aa
inc r10
jmp 0x14004a970
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c5ba0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret