Function at 0x140050c20
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14015d080]
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 [0x1401aa38c], eax
jle 0x140050c93
lea rcx, [0x1401aa38c]
call fcn.140116e10
cmp dword [0x1401aa38c], 0xffffffff
jne 0x140050c93
mov r8d, ebx
lea rcx, [0x140136db8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1401aa38c]
mov qword [0x1401aa428], rax
call fcn.140116da4
mov eax, dword [rdi]
cmp dword [0x1401aa44c], eax
jle 0x140050ccc
lea rcx, [0x1401aa44c]
call fcn.140116e10
cmp dword [0x1401aa44c], 0xffffffff
jne 0x140050ccc
mov rax, qword [0x1401aa428]
lea rcx, [0x1401aa44c]
mov qword [0x1401aa3e0], rax
call fcn.140116da4
mov rax, qword [0x1401aa3e0]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050f45
mov eax, dword [rdi]
cmp dword [0x1401aa444], eax
jle 0x140050d25
lea rcx, [0x1401aa444]
call fcn.140116e10
cmp dword [0x1401aa444], 0xffffffff
jne 0x140050d25
mov rax, qword [0x1401aa3e0]
lea rcx, [0x1401aa444]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1401aa428]
mov qword [0x1401aa408], rdx
call fcn.140116da4
mov rax, qword [0x1401aa408]
cmp dword [rax], 0x4550
jne 0x140050f45
mov eax, dword [rdi]
cmp dword [0x1401aa39c], eax
mov qword [rsp + 0x60], rsi
jle 0x140050d7c
lea rcx, [0x1401aa39c]
call fcn.140116e10
cmp dword [0x1401aa39c], 0xffffffff
jne 0x140050d7c
mov rax, qword [0x1401aa408]
lea rcx, [0x1401aa39c]
add rax, 0x108
mov qword [0x1401aa370], rax
call fcn.140116da4
mov eax, dword [rdi]
cmp dword [0x1401aa3a0], eax
jle 0x140050db5
lea rcx, [0x1401aa3a0]
call fcn.140116e10
cmp dword [0x1401aa3a0], 0xffffffff
jne 0x140050db5
mov rax, qword [0x1401aa370]
lea rcx, [0x1401aa3a0]
mov qword [0x1401aa458], rax
call fcn.140116da4
mov eax, dword [rdi]
cmp dword [0x1401aa400], eax
jle 0x140050df2
lea rcx, [0x1401aa400]
call fcn.140116e10
cmp dword [0x1401aa400], 0xffffffff
jne 0x140050df2
mov rax, qword [0x1401aa408]
lea rcx, [0x1401aa400]
movzx edx, word [rax + 6]
mov word [0x1401aa448], dx
call fcn.140116da4
xchg byte [0x1401aa430], bl
mov rdx, qword [0x1401aa370]
xor esi, esi
test bl, bl
jne 0x140050e66
movzx eax, word [0x1401aa448]
lea rcx, [rax + rax*4]
mov rax, qword [0x1401aa458]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140050e66
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 0x140050e56
cmp rcx, 5
jne 0x140050e40
jmp 0x140050e66
add rdx, 0x28
mov qword [0x1401aa370], rdx
cmp rdx, r8
jb 0x140050e30
mov eax, dword [rdi]
cmp dword [0x1401aa360], eax
jle 0x140050eb0
lea rcx, [0x1401aa360]
call fcn.140116e10
cmp dword [0x1401aa360], 0xffffffff
jne 0x140050ea9
mov rax, qword [0x1401aa370]
lea rcx, [0x1401aa360]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1401aa428]
mov qword [0x1401aa468], rdx
call fcn.140116da4
mov rdx, qword [0x1401aa370]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x1401aa468]
movdqa xmm0, xmmword [0x140141da0]
movdqa xmm1, xmmword [0x140141d80]
movdqu xmmword [rsp + 0x20], xmm0
lea rbx, [rcx + r10]
mov rax, rbx
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x140050f2a
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 0x140050f16
cmp byte [r8], r9b
jne 0x140050f3b
inc r8
lea rcx, [rsp + 0x40]
add rdx, 2
cmp rdx, rcx
jne 0x140050f00
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x140050f47
cmp r10, r11
je 0x140050f2a
inc r10
jmp 0x140050ef0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140116d40
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret