Function at 0x140050c40
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14016e080]
xor rax, rsp
mov qword [rsp + 0x50], 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 [0x1401702f8], eax
jle 0x140050cb3
lea rcx, [0x1401702f8]
call fcn.140127120
cmp dword [0x1401702f8], 0xffffffff
jne 0x140050cb3
mov r8d, ebx
lea rcx, [0x140146f18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1401702f8]
mov qword [0x1401702f0], rax
call fcn.1401270b4
mov eax, dword [rdi]
cmp dword [0x140170314], eax
jle 0x140050cec
lea rcx, [0x140170314]
call fcn.140127120
cmp dword [0x140170314], 0xffffffff
jne 0x140050cec
mov rax, qword [0x1401702f0]
lea rcx, [0x140170314]
mov qword [0x140170368], rax
call fcn.1401270b4
mov rax, qword [0x140170368]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050f85
mov eax, dword [rdi]
cmp dword [0x140170328], eax
jle 0x140050d45
lea rcx, [0x140170328]
call fcn.140127120
cmp dword [0x140170328], 0xffffffff
jne 0x140050d45
mov rax, qword [0x140170368]
lea rcx, [0x140170328]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1401702f0]
mov qword [0x140170380], rdx
call fcn.1401270b4
mov rax, qword [0x140170380]
cmp dword [rax], 0x4550
jne 0x140050f85
mov eax, dword [rdi]
cmp dword [0x140170318], eax
mov qword [rsp + 0x70], rsi
jle 0x140050d9c
lea rcx, [0x140170318]
call fcn.140127120
cmp dword [0x140170318], 0xffffffff
jne 0x140050d9c
mov rax, qword [0x140170380]
lea rcx, [0x140170318]
add rax, 0x108
mov qword [0x1401703d0], rax
call fcn.1401270b4
mov eax, dword [rdi]
cmp dword [0x1401703c0], eax
jle 0x140050dd5
lea rcx, [0x1401703c0]
call fcn.140127120
cmp dword [0x1401703c0], 0xffffffff
jne 0x140050dd5
mov rax, qword [0x1401703d0]
lea rcx, [0x1401703c0]
mov qword [0x1401702d8], rax
call fcn.1401270b4
mov eax, dword [rdi]
cmp dword [0x1401703c4], eax
jle 0x140050e12
lea rcx, [0x1401703c4]
call fcn.140127120
cmp dword [0x1401703c4], 0xffffffff
jne 0x140050e12
mov rax, qword [0x140170380]
lea rcx, [0x1401703c4]
movzx edx, word [rax + 6]
mov word [0x1401702e8], dx
call fcn.1401270b4
xchg byte [0x140170324], bl
mov rdx, qword [0x1401703d0]
xor esi, esi
test bl, bl
jne 0x140050e86
movzx eax, word [0x1401702e8]
lea rcx, [rax + rax*4]
mov rax, qword [0x1401702d8]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140050e86
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 0x140050e76
cmp rcx, 5
jne 0x140050e60
jmp 0x140050e86
add rdx, 0x28
mov qword [0x1401703d0], rdx
cmp rdx, r8
jb 0x140050e50
mov eax, dword [rdi]
cmp dword [0x1401702cc], eax
jle 0x140050ed0
lea rcx, [0x1401702cc]
call fcn.140127120
cmp dword [0x1401702cc], 0xffffffff
jne 0x140050ec9
mov rax, qword [0x1401703d0]
lea rcx, [0x1401702cc]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1401702f0]
mov qword [0x1401703a8], rdx
call fcn.1401270b4
mov rdx, qword [0x1401703d0]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x1401703a8]
movdqa xmm0, xmmword [0x140152a20]
movdqa xmm1, xmmword [0x140152580]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea rbx, [rcx + r10]
mov dword [rsp + 0x48], 0x78c07885
mov rax, rbx
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x140050f6a
lea r11, [rbx - 0x17]
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 0x140050f56
cmp byte [r8], r9b
jne 0x140050f7b
inc r8
lea rcx, [rsp + 0x4e]
add rdx, 2
cmp rdx, rcx
jne 0x140050f40
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x140050f87
cmp r10, r11
je 0x140050f6a
inc r10
jmp 0x140050f30
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140127050
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret