Function at 0x140050ad0
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140161080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, reloc.WS2_32.dll_recv
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x140163d24], eax
jle 0x140050b43
lea rcx, [0x140163d24]
call fcn.14011a460
cmp dword [0x140163d24], 0xffffffff
jne 0x140050b43
mov r8d, ebx
lea rcx, [0x140139db8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140163d24]
mov qword [0x140163dc0], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163de4], eax
jle 0x140050b7c
lea rcx, [0x140163de4]
call fcn.14011a460
cmp dword [0x140163de4], 0xffffffff
jne 0x140050b7c
mov rax, qword [0x140163dc0]
lea rcx, [0x140163de4]
mov qword [0x140163d78], rax
call fcn.14011a3f4
mov rax, qword [0x140163d78]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050df5
mov eax, dword [rdi]
cmp dword [0x140163ddc], eax
jle 0x140050bd5
lea rcx, [0x140163ddc]
call fcn.14011a460
cmp dword [0x140163ddc], 0xffffffff
jne 0x140050bd5
mov rax, qword [0x140163d78]
lea rcx, [0x140163ddc]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140163dc0]
mov qword [0x140163da0], rdx
call fcn.14011a3f4
mov rax, qword [0x140163da0]
cmp dword [rax], 0x4550
jne 0x140050df5
mov eax, dword [rdi]
cmp dword [0x140163d34], eax
mov qword [rsp + 0x60], rsi
jle 0x140050c2c
lea rcx, [0x140163d34]
call fcn.14011a460
cmp dword [0x140163d34], 0xffffffff
jne 0x140050c2c
mov rax, qword [0x140163da0]
lea rcx, [0x140163d34]
add rax, 0x108
mov qword [0x140163d08], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163d38], eax
jle 0x140050c65
lea rcx, [0x140163d38]
call fcn.14011a460
cmp dword [0x140163d38], 0xffffffff
jne 0x140050c65
mov rax, qword [0x140163d08]
lea rcx, [0x140163d38]
mov qword [0x140163df0], rax
call fcn.14011a3f4
mov eax, dword [rdi]
cmp dword [0x140163d98], eax
jle 0x140050ca2
lea rcx, [0x140163d98]
call fcn.14011a460
cmp dword [0x140163d98], 0xffffffff
jne 0x140050ca2
mov rax, qword [0x140163da0]
lea rcx, [0x140163d98]
movzx edx, word [rax + 6]
mov word [0x140163de0], dx
call fcn.14011a3f4
xchg byte [0x140163dc8], bl
mov rdx, qword [0x140163d08]
xor esi, esi
test bl, bl
jne 0x140050d16
movzx eax, word [0x140163de0]
lea rcx, [rax + rax*4]
mov rax, qword [0x140163df0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140050d16
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 0x140050d06
cmp rcx, 5
jne 0x140050cf0
jmp 0x140050d16
add rdx, 0x28
mov qword [0x140163d08], rdx
cmp rdx, r8
jb 0x140050ce0
mov eax, dword [rdi]
cmp dword [0x140163cf8], eax
jle 0x140050d60
lea rcx, [0x140163cf8]
call fcn.14011a460
cmp dword [0x140163cf8], 0xffffffff
jne 0x140050d59
mov rax, qword [0x140163d08]
lea rcx, [0x140163cf8]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140163dc0]
mov qword [0x140163e00], rdx
call fcn.14011a3f4
mov rdx, qword [0x140163d08]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x140163e00]
movdqa xmm0, xmmword [0x140145790]
movdqa xmm1, xmmword [0x140145780]
movdqu xmmword [rsp + 0x20], xmm0
lea rbx, [rcx + r10]
mov rax, rbx
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x140050dda
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 0x140050dc6
cmp byte [r8], r9b
jne 0x140050deb
inc r8
lea rcx, [rsp + 0x40]
add rdx, 2
cmp rdx, rcx
jne 0x140050db0
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x140050df7
cmp r10, r11
je 0x140050dda
inc r10
jmp 0x140050da0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011a390
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret