Function at 0x1800050e8
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa60]
sub rsp, 0xb60
mov rax, qword [0x180038008]
xor rax, rsp
mov qword [rbp + 0xa50], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x100
call fcn.18000ce00
or r15, 0xffffffffffffffff
mov r14d, 0xd0
mov rcx, qword [rbx + 0x258]
lea rdx, [rbp + 0x10]
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jg 0x1800051b0
mov rcx, rbx
call fcn.180004ce0
mov rcx, rbx
call fcn.180004c88
neg al
sbb ecx, ecx
and edi, ecx
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jle 0x180005155
jmp 0x1800051b0
mov ecx, shutdown
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rax, edi
lea rdx, [rbp + 0x10]
imul rcx, rax, 0xd0
mov r8d, r14d
xor r9d, r9d
add rdx, rcx
sub r8d, edi
mov rcx, qword [rbx + 0x258]
call qword [sym.imp.WS2_32.dll_recv]
add edi, eax
cmp edi, r14d
jb 0x18000517c
lea rdx, [rbx + 0x248]
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x10]
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rbp + 0x150]
call fcn.180008240
mov ecx, dword [rbp + 0x10]
cmp ecx, 9
jg 0x180005378
je 0x18000536e
cmp ecx, 2
jl 0x180005138
cmp ecx, 3
jle 0x18000534f
cmp ecx, 4
je 0x1800052ff
cmp ecx, 5
je 0x1800052ee
cmp ecx, 6
je 0x180005250
cmp ecx, 7
jne 0x180005138
and qword [rsp + 0x28], 0
lea r9, [rbp + 0x10]
and dword [rsp + 0x20], 0
lea r8, [0x18000546c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [rbx + 0x240], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180005138
mov rcx, rbx
call fcn.18000616c
lea rax, [rbp + 0x10]
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [rax + 0x10]
lea rdx, [rsp + 0x40]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x80]
movups xmmword [rcx - 0x10], xmm1
movups xmm1, xmmword [rax + 0x90]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0xa0]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0xb0]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0xc0]
movups xmmword [rcx + 0x30], xmm1
movups xmmword [rcx + 0x40], xmm0
mov rcx, rbx
call fcn.180005584
jmp 0x180005138
mov rcx, qword [0x180039ff8]
call fcn.180008540
jmp 0x180005138
cmp byte [0x180039ff0], 0
je 0x180005327
lea rax, [rbp + 0x18]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x18000530f
lea rdx, [rbp + 0x18]
call fcn.1800085cc
jmp 0x180005138
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x180008694]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180005138
lea rax, [rbp + 0x18]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x180005356
lea rdx, [rbp + 0x18]
call fcn.180006a78
jmp 0x180005138
call fcn.180005484
jmp 0x180005138
sub ecx, 0xb
je 0x18000545e
sub ecx, 1
je 0x180005451
sub ecx, 1
je 0x18000543d
cmp ecx, 1
jne 0x180005138
lea rcx, [rbp + 0x18]
call fcn.180015d84
mov rcx, rbx
mov dword [rbx + 0x1a8], eax
call fcn.180005b20
xor edx, edx
lea rcx, [rbp + 0xe0]
lea r8d, [rdx + 0x64]
call fcn.18000ce00
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x800
call fcn.18000ce00
lea r8, [rbp + 0x18]
lea rdx, [0x180030468]
lea rcx, [rbp + 0x250]
call fcn.180001130
lea rcx, [rbp + 0x250]
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x1800053fa
lea rcx, [rbp + 0xe0]
mov r9, r15
inc r9
cmp byte [rcx + r9], 0
jne 0x18000540d
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0xe0]
lea rax, [rbp + 0x250]
mov edx, recv
mov qword [rsp + 0x20], rax
call fcn.180004f00
jmp 0x180005138
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.180005f04
mov rcx, rbx
call fcn.180005b20
mov rcx, rbx
call fcn.180005770
jmp 0x180005138
mov rcx, rbx
call fcn.180004a4c
jmp 0x180005138