Function at 0x1400033c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp dword [0x140050368], 0
mov r12, r9
mov rbx, qword [rsp + 0x4f0]
mov r15d, r8d
mov rdi, qword [rsp + 0x4f8]
mov ebp, edx
mov rax, qword [rsp + 0x500]
mov esi, ecx
mov r13, qword [rsp + 0x4e8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
jne 0x140003447
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.No_host_open__use__host_command_n
call fcn.140001040
or eax, 0xffffffff
jmp 0x1400036f7
mov qword [rsp + 0x478], r14
mov r14, qword [rsp + 0x4e0]
nop word [rax + rax]
mov rax, qword [0x140050b98]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x50], 1
lea ecx, [rax + 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1400036e0
test eax, eax
jle 0x1400034c8
mov rcx, qword [0x140050b98]
lea rdx, [rsp + 0x260]
xor r9d, r9d
mov r8d, 0x200
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140003460
mov qword [rsp + 0x28], r13
mov r9, r12
mov r8d, r15d
mov qword [rsp + 0x20], r14
mov edx, ebp
mov ecx, esi
call fcn.140003060
test eax, eax
jne 0x1400036ef
movsxd rax, dword [rsp + 0x510]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8, rbx
mov rax, qword [rsp + 0x38]
mov edx, ebp
mov ecx, esi
mov qword [rsp + 0x20], rax
call fcn.1400029e0
mov ebx, eax
cmp eax, 3
jne 0x1400035a7
mov edi, dword [0x14004cbe8]
cmp edi, 0x30
je 0x1400035af
mov ecx, edi
sub ecx, 0xa0
je 0x140003544
cmp ecx, 0x20
jne 0x14000354e
mov dword [0x14004cbe8], 0xa0
jmp 0x14000354e
mov dword [0x14004cbe8], 0x30
cmp dword [reloc.WS2_32.dll_closesocket], 3
mov ecx, 2
je 0x140003589
call fcn.14001df44
mov r9d, dword [0x14004cbe8]
lea rdx, str.Warning_changing_the_request_packet_size_from__d_to__d_n
mov rcx, rax
mov r8d, edi
call fcn.140001040
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
jmp 0x140003460
call fcn.14001df44
mov rcx, rax
lea rdx, str.Warning_changing_to_older_implementation_n
call fcn.140001040
mov eax, 1
jmp 0x1400036ef
test ebx, ebx
jle 0x1400036dc
mov eax, dword [rsp + 0x508]
bt eax, ebx
jb 0x1400036dc
lea eax, [rbx - 1]
cmp eax, 0x10
ja case.0x1400035de.5
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x371c]
add rcx, rdx
jmp rcx
cmp esi, 3
je 0x1400036dc
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Server_implementation_incompatible_with_our_own_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Server_doesnt_implement_this_request_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Server_reports_a_format_error_in_the_received_packet__shouldnt_happen__n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Server_reports_data_not_found_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Permission_denied_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Request_timed_out_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Response_from_server_was_incomplete_n
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Server_returns_unknown_error_code__d_n
mov r8d, ebx
call fcn.140001040
mov eax, ebx
jmp 0x1400036ef
lea rcx, str.polling_select
call fcn.140004ba0
or eax, 0xffffffff
mov r14, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001b620
add rsp, 0x480
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret