Function at 0x14004cdc0
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d2040]
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 [0x1400d3c10], eax
jle 0x14004ce33
lea rcx, [0x1400d3c10]
call fcn.1400a5900
cmp dword [0x1400d3c10], 0xffffffff
jne 0x14004ce33
mov r8d, ebx
lea rcx, [0x1400b5180]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400d3c10]
mov qword [0x1400d3c08], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3c2c], eax
jle 0x14004ce6c
lea rcx, [0x1400d3c2c]
call fcn.1400a5900
cmp dword [0x1400d3c2c], 0xffffffff
jne 0x14004ce6c
mov rax, qword [0x1400d3c08]
lea rcx, [0x1400d3c2c]
mov qword [0x1400d3c80], rax
call fcn.1400a5894
mov rax, qword [0x1400d3c80]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d108
mov eax, dword [rdi]
cmp dword [0x1400d3c40], eax
jle 0x14004cec5
lea rcx, [0x1400d3c40]
call fcn.1400a5900
cmp dword [0x1400d3c40], 0xffffffff
jne 0x14004cec5
mov rax, qword [0x1400d3c80]
lea rcx, [0x1400d3c40]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400d3c08]
mov qword [0x1400d3c98], rdx
call fcn.1400a5894
mov rax, qword [0x1400d3c98]
cmp dword [rax], 0x4550
jne 0x14004d108
mov eax, dword [rdi]
cmp dword [0x1400d3c30], eax
mov qword [rsp + 0x70], rsi
jle 0x14004cf1c
lea rcx, [0x1400d3c30]
call fcn.1400a5900
cmp dword [0x1400d3c30], 0xffffffff
jne 0x14004cf1c
mov rax, qword [0x1400d3c98]
lea rcx, [0x1400d3c30]
add rax, 0x108
mov qword [0x1400d3ce8], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3cd8], eax
jle 0x14004cf55
lea rcx, [0x1400d3cd8]
call fcn.1400a5900
cmp dword [0x1400d3cd8], 0xffffffff
jne 0x14004cf55
mov rax, qword [0x1400d3ce8]
lea rcx, [0x1400d3cd8]
mov qword [0x1400d3bf0], rax
call fcn.1400a5894
mov eax, dword [rdi]
cmp dword [0x1400d3cdc], eax
jle 0x14004cf92
lea rcx, [0x1400d3cdc]
call fcn.1400a5900
cmp dword [0x1400d3cdc], 0xffffffff
jne 0x14004cf92
mov rax, qword [0x1400d3c98]
lea rcx, [0x1400d3cdc]
movzx edx, word [rax + 6]
mov word [0x1400d3c00], dx
call fcn.1400a5894
xchg byte [0x1400d3c3c], bl
mov rdx, qword [0x1400d3ce8]
xor esi, esi
test bl, bl
jne 0x14004d006
movzx eax, word [0x1400d3c00]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400d3bf0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x14004d006
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 0x14004cff6
cmp rcx, 5
jne 0x14004cfe0
jmp 0x14004d006
add rdx, 0x28
mov qword [0x1400d3ce8], rdx
cmp rdx, r8
jb 0x14004cfd0
mov eax, dword [rdi]
cmp dword [0x1400d3be4], eax
jle 0x14004d050
lea rcx, [0x1400d3be4]
call fcn.1400a5900
cmp dword [0x1400d3be4], 0xffffffff
jne 0x14004d049
mov rax, qword [0x1400d3ce8]
lea rcx, [0x1400d3be4]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400d3c08]
mov qword [0x1400d3cc0], rdx
call fcn.1400a5894
mov rdx, qword [0x1400d3ce8]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x1400d3cc0]
movdqa xmm0, xmmword [0x1400bfda0]
movdqa xmm1, xmmword [0x1400bf910]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea r10, [r9 + rcx]
mov dword [rsp + 0x48], 0x78c07885
mov rax, r10
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x14004d0ea
lea r11, [r10 - 0x17]
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 0x14004d0d6
cmp byte [rdx], r8b
jne 0x14004d0fb
inc rdx
lea rcx, [rsp + 0x4e]
add rax, 2
cmp rax, rcx
jne 0x14004d0c0
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x14004d10a
mov rax, r10
cmp r9, r11
je 0x14004d0ea
inc r9
jmp 0x14004d0b0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a5830
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret