Function at 0x14004ca70
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d2040]
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 [0x1400d3c14], eax
jle 0x14004cae3
lea rcx, [0x1400d3c14]
call fcn.1400a5900
cmp dword [0x1400d3c14], 0xffffffff
jne 0x14004cae3
mov r8d, ebx
lea rcx, [0x1400b5180]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400d3c14]
mov qword [0x1400d3cb0], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3cd4], eax
jle 0x14004cb1c
lea rcx, [0x1400d3cd4]
call fcn.1400a5900
cmp dword [0x1400d3cd4], 0xffffffff
jne 0x14004cb1c
mov rax, qword [0x1400d3cb0]
lea rcx, [0x1400d3cd4]
mov qword [0x1400d3c68], rax
call fcn.1400a5894
mov rax, qword [0x1400d3c68]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004cd98
mov eax, dword [rdi]
cmp dword [0x1400d3ccc], eax
jle 0x14004cb75
lea rcx, [0x1400d3ccc]
call fcn.1400a5900
cmp dword [0x1400d3ccc], 0xffffffff
jne 0x14004cb75
mov rax, qword [0x1400d3c68]
lea rcx, [0x1400d3ccc]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400d3cb0]
mov qword [0x1400d3c90], rdx
call fcn.1400a5894
mov rax, qword [0x1400d3c90]
cmp dword [rax], 0x4550
jne 0x14004cd98
mov eax, dword [rdi]
cmp dword [0x1400d3c24], eax
mov qword [rsp + 0x60], rsi
jle 0x14004cbcc
lea rcx, [0x1400d3c24]
call fcn.1400a5900
cmp dword [0x1400d3c24], 0xffffffff
jne 0x14004cbcc
mov rax, qword [0x1400d3c90]
lea rcx, [0x1400d3c24]
add rax, 0x108
mov qword [0x1400d3bf8], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3c28], eax
jle 0x14004cc05
lea rcx, [0x1400d3c28]
call fcn.1400a5900
cmp dword [0x1400d3c28], 0xffffffff
jne 0x14004cc05
mov rax, qword [0x1400d3bf8]
lea rcx, [0x1400d3c28]
mov qword [0x1400d3ce0], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3c88], eax
jle 0x14004cc42
lea rcx, [0x1400d3c88]
call fcn.1400a5900
cmp dword [0x1400d3c88], 0xffffffff
jne 0x14004cc42
mov rax, qword [0x1400d3c90]
lea rcx, [0x1400d3c88]
movzx edx, word [rax + 6]
mov word [0x1400d3cd0], dx
call fcn.1400a5894
xchg byte [0x1400d3cb8], bl
mov rdx, qword [0x1400d3bf8]
xor esi, esi
test bl, bl
jne 0x14004ccb6
movzx eax, word [0x1400d3cd0]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400d3ce0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x14004ccb6
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 0x14004cca6
cmp rcx, 5
jne 0x14004cc90
jmp 0x14004ccb6
add rdx, 0x28
mov qword [0x1400d3bf8], rdx
cmp rdx, r8
jb 0x14004cc80
mov eax, dword [rdi]
cmp dword [0x1400d3be8], eax
jle 0x14004cd00
lea rcx, [0x1400d3be8]
call fcn.1400a5900
cmp dword [0x1400d3be8], 0xffffffff
jne 0x14004ccf9
mov rax, qword [0x1400d3bf8]
lea rcx, [0x1400d3be8]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400d3cb0]
mov qword [0x1400d3cf0], rdx
call fcn.1400a5894
mov rdx, qword [0x1400d3bf8]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x1400d3cf0]
movdqa xmm0, xmmword [0x1400bfda0]
movdqa xmm1, xmmword [0x1400bfd90]
movdqu xmmword [rsp + 0x20], xmm0
lea r10, [r9 + rcx]
mov rax, r10
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x14004cd7a
lea r11, [r10 - 0x10]
nop word [rax + rax]
mov rdx, r9
lea rax, [rsp + 0x20]
nop dword [rax + rax]
movzx r8d, word [rax]
movzx ecx, r8w
shr cx, 8
cmp cl, 0x3f
je 0x14004cd66
cmp byte [rdx], r8b
jne 0x14004cd8b
inc rdx
lea rcx, [rsp + 0x40]
add rax, 2
cmp rax, rcx
jne 0x14004cd50
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x14004cd9a
mov rax, r10
cmp r9, r11
je 0x14004cd7a
inc r9
jmp 0x14004cd40
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a5830
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret