Function at 0x140004730
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 4
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x140025d84], eax
jle 0x1400047a3
lea rcx, [0x140025d84]
call fcn.1400107b0
cmp dword [0x140025d84], 0xffffffff
jne 0x1400047a3
mov r8d, ebx
lea rcx, [0x140018ce8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140025d84]
mov qword [0x140025e20], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025e44], eax
jle 0x1400047dc
lea rcx, [0x140025e44]
call fcn.1400107b0
cmp dword [0x140025e44], 0xffffffff
jne 0x1400047dc
mov rax, qword [0x140025e20]
lea rcx, [0x140025e44]
mov qword [0x140025dd8], rax
call fcn.140010744
mov rax, qword [0x140025dd8]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004a58
mov eax, dword [rdi]
cmp dword [0x140025e3c], eax
jle 0x140004835
lea rcx, [0x140025e3c]
call fcn.1400107b0
cmp dword [0x140025e3c], 0xffffffff
jne 0x140004835
mov rax, qword [0x140025dd8]
lea rcx, [0x140025e3c]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140025e20]
mov qword [0x140025e00], rdx
call fcn.140010744
mov rax, qword [0x140025e00]
cmp dword [rax], 0x4550
jne 0x140004a58
mov eax, dword [rdi]
cmp dword [0x140025d94], eax
mov qword [rsp + 0x60], rsi
jle 0x14000488c
lea rcx, [0x140025d94]
call fcn.1400107b0
cmp dword [0x140025d94], 0xffffffff
jne 0x14000488c
mov rax, qword [0x140025e00]
lea rcx, [0x140025d94]
add rax, 0x108
mov qword [0x140025d68], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025d98], eax
jle 0x1400048c5
lea rcx, [0x140025d98]
call fcn.1400107b0
cmp dword [0x140025d98], 0xffffffff
jne 0x1400048c5
mov rax, qword [0x140025d68]
lea rcx, [0x140025d98]
mov qword [0x140025e50], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025df8], eax
jle 0x140004902
lea rcx, [0x140025df8]
call fcn.1400107b0
cmp dword [0x140025df8], 0xffffffff
jne 0x140004902
mov rax, qword [0x140025e00]
lea rcx, [0x140025df8]
movzx edx, word [rax + 6]
mov word [0x140025e40], dx
call fcn.140010744
xchg byte [0x140025e28], bl
mov rdx, qword [0x140025d68]
xor esi, esi
test bl, bl
jne 0x140004976
movzx eax, word [0x140025e40]
lea rcx, [rax + rax*4]
mov rax, qword [0x140025e50]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140004976
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 0x140004966
cmp rcx, 5
jne 0x140004950
jmp 0x140004976
add rdx, 0x28
mov qword [0x140025d68], rdx
cmp rdx, r8
jb 0x140004940
mov eax, dword [rdi]
cmp dword [0x140025d58], eax
jle 0x1400049c0
lea rcx, [0x140025d58]
call fcn.1400107b0
cmp dword [0x140025d58], 0xffffffff
jne 0x1400049b9
mov rax, qword [0x140025d68]
lea rcx, [0x140025d58]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140025e20]
mov qword [0x140025e60], rdx
call fcn.140010744
mov rdx, qword [0x140025d68]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x140025e60]
movdqa xmm0, xmmword [0x14001f000]
movdqa xmm1, xmmword [0x14001eff0]
movdqu xmmword [rsp + 0x20], xmm0
lea r10, [r9 + rcx]
mov rax, r10
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x140004a3a
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 0x140004a26
cmp byte [rdx], r8b
jne 0x140004a4b
inc rdx
lea rcx, [rsp + 0x40]
add rax, 2
cmp rax, rcx
jne 0x140004a10
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x140004a5a
mov rax, r10
cmp r9, r11
je 0x140004a3a
inc r9
jmp 0x140004a00
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400106e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret