Function at 0x140016d70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp dword [reloc.WSOCK32.dll_accept], 4
mov rsi, r9
mov r14, r8
mov qword [rsp + 0x50], 0
mov rdi, rdx
mov rbx, rcx
jl 0x14001663d
test dword [0x14016b7a0], 0x40000
je 0x14001663d
lea rax, str.Socket_in_its_opening_state_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_open_client
mov dword [rsp + 0x20], 0x2a1
mov ecx, 0x40000
call fcn.140003693
lea r8, [rbx + 0xc]
mov rdx, rsi
mov rcx, rdi
call fcn.1400017d5
cmp eax, 0xf2
je 0x14001674f
cmp eax, 0xf1
je 0x140016724
cmp eax, 0xf3
jne 0x1400166ff
lea r9, [rsp + 0x50]
mov r8, r14
mov rdx, rdi
lea rcx, [rbx + 0xc]
call fcn.140004dcc
test eax, eax
je 0x1400166d8
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x1400167ba
test dword [0x14016b7a0], 0x40000
je 0x1400167ba
lea rax, str.Unable_to_build_response_header_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_open_client
mov dword [rsp + 0x20], 0x2c3
mov ecx, 0x40000
call fcn.140003693
jmp 0x1400167ba
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140016f10
cmp eax, 1
je 0x1400167ba
mov dword [rbx + 8], 1
xor eax, eax
jmp 0x1400167bf
cmp eax, 0xff
jne 0x1400166f8
mov r8d, dword [0x14016d6a8]
mov r9, rsi
mov rdx, qword [0x14016d6a0]
mov rcx, rbx
call fcn.140001f96
jmp 0x1400167bf
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016795
test dword [0x14016b7a0], 0x40000
je 0x140016795
lea rax, str.Improper_format_for_frame_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a9
jmp 0x140016778
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016795
test dword [0x14016b7a0], 0x40000
je 0x140016795
lea rax, str.Incomplete_frame_received_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a7
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov edx, 4
lea r8, str.esif_ws_client_open_client
mov ecx, 0x40000
call fcn.140003693
lea r8, str.HTTP_1.1_400_Bad_Request_r_nContent_Type:_text_html_r_n_r_n_html__head___head____body_____ERROR:_HTTP_1.1_400_Bad_Request____body___html_
mov rdx, rdi
mov rcx, r14
call fcn.1400162a0
movsxd r8, eax
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x50], r8
call fcn.140016f10
mov eax, 0xc1c
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r14d, r14d
mov r13, r9
mov ebx, r14d
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov r12, r8
mov qword [rbp - 0x20], r14
mov r15, rdx
mov qword [rbp - 0x10], r14
mov edi, r14d
mov qword [rbp - 0x30], rbx
test rbx, rbx
je 0x1400168c8
mov r9, rbx
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.1400183e0
mov r13, qword [rbp - 0x30]
mov qword [rbp - 0x30], r14
lea rax, [rbp - 0x30]
mov rdx, r13
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x18]
mov rcx, r15
call fcn.140001956
cmp dword [reloc.WSOCK32.dll_accept], 4
mov esi, eax
jl 0x140016930
test dword [0x14016b7a0], 0x40000
je 0x140016930
mov dword [rsp + 0x30], eax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea rax, str.FrameType:__d_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r8, str.esif_ws_client_process_active_client
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x30b
call fcn.140003693
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140016984
test rdi, rdi
jne 0x140016968
mov rcx, rbx
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14001695b
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400033e1
test rdi, rdi
je 0x140016b32
mov rbx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov r9, rbx
add r8, qword [rbp - 0x18]
mov rdx, rbx
mov rcx, rdi
call fcn.1400183e0
mov rbx, qword [rbp - 0x30]
jmp 0x140016998
test rdi, rdi
je 0x140016995
mov rcx, rdi
call fcn.140002d65
mov rbx, qword [rbp - 0x30]
mov rdi, r14
cmp esi, 0xf2
je 0x140016bb7
cmp esi, 0xf1
je 0x140016b8c
cmp esi, 8
je 0x140016b59
cmp esi, 1
jne 0x140016ae6
mov rsi, qword [rbp - 0x20]
lea rcx, [rsi + 1]
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x140016b32
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
mov r8, qword [rbp - 0x18]
mov r9, rdx
call fcn.1400183e0
mov rax, qword [rbp - 0x20]
mov rdx, r12
mov rcx, rbx
mov byte [rbx + rax], r14b
call fcn.140004e71
mov rdx, rax
mov rcx, rbx
call fcn.140002487
mov ecx, dword [0x14016d6a8]
cmp r12, rcx
je 0x140016a2f
mov r15, qword [0x14016d6a0]
mov r12d, ecx
cmp dword [reloc.WSOCK32.dll_accept], 4
mov rsi, qword [0x14016d6b0]
jl 0x140016a87
test dword [0x14016b7a0], 0x40000
je 0x140016a87
lea rax, str.Message_Received:__s__n
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_server_get_rest_response
mov dword [rsp + 0x20], 0x175
mov edx, 4
mov ecx, 0x40000
call fcn.140003693
mov ecx, dword [0x14016d6a8]
test rsi, rsi
je 0x140016adc
mov edx, ecx
mov rcx, rsi
call fcn.140004e71
mov rcx, qword [rbp - 0x10]
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x10], rcx
lea rax, [rbp - 0x28]
mov dword [rsp + 0x28], 1
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, r12
mov r8, r15
call fcn.140002342
mov r8, qword [rbp - 0x28]
mov rdx, r15
mov rcx, qword [rbp + 0x30]
call fcn.140016f10
cmp eax, 1
je 0x140016b3d
mov rcx, rbx
call fcn.140002d65
jmp 0x140016b20
cmp esi, 0xa
jne 0x140016b24
lea rax, [rbp - 0x28]
mov dword [rsp + 0x28], 1
mov r9, r12
mov qword [rsp + 0x20], rax
mov r8, r15
lea rcx, [0x14011d7d5]
xor edx, edx
call fcn.140002342
mov r8, qword [rbp - 0x28]
mov rdx, r15
mov rcx, qword [rbp + 0x30]
call fcn.140016f10
mov rbx, qword [rbp - 0x30]
test rbx, rbx
jne 0x1400168af
jmp 0x140016c33
mov r14d, 0x708
jmp 0x140016c33
mov r14d, 0xc1c
test rbx, rbx
je 0x140016c33
mov rcx, rbx
call fcn.140002d65
jmp 0x140016c33
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016bfd
test dword [0x14016b7a0], 0x40000
je 0x140016bfd
lea rax, str.Close_frame_received__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x335
jmp 0x140016be0
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016bfd
test dword [0x14016b7a0], 0x40000
je 0x140016bfd
lea rax, str.Improper_format_for_frame__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x322
jmp 0x140016be0
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016bfd
test dword [0x14016b7a0], 0x40000
je 0x140016bfd
lea rax, str.Incomplete_frame_received__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x320
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov edx, 4
lea r8, str.esif_ws_client_process_active_client
mov ecx, 0x40000
call fcn.140003693
lea rax, [rbp - 0x28]
mov dword [rsp + 0x28], 8
mov r9, r12
mov qword [rsp + 0x20], rax
mov r8, r15
xor edx, edx
xor ecx, ecx
call fcn.140002342
mov r8, qword [rbp - 0x28]
mov rdx, r15
mov rcx, qword [rbp + 0x30]
call fcn.140016f10
mov r14d, 0xc1c
test rdi, rdi
je 0x140016c40
mov rcx, rdi
call fcn.140002d65
lea r11, [rsp + 0x70]
mov eax, r14d
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x40
mov r8d, dword [0x14016d6a8]
mov rsi, rcx
mov rcx, qword [0x14016d6a0]
xor edx, edx
call fcn.1400033e1
mov r8d, dword [0x14016d6a8]
xor r9d, r9d
mov rdx, qword [0x14016d6a0]
mov rcx, qword [rsi]
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rbx, eax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140016e5d
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016e07
test dword [0x14016b7a0], 0x40000
je 0x140016e07
lea rax, str._d_bytes_received_n
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_request
mov dword [rsp + 0x20], 0x27d
mov edx, 4
mov ecx, 0x40000
call fcn.140003693
mov ecx, dword [rsi + 8]
test ecx, ecx
je 0x140016e3a
cmp ecx, 1
jne 0x140016ea3
mov r8d, dword [0x14016d6a8]
mov r9, rbx
mov rdx, qword [0x14016d6a0]
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
jmp 0x140016860
mov r8d, dword [0x14016d6a8]
mov r9, rbx
mov rdx, qword [0x14016d6a0]
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
jmp 0x1400165d0
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016ea3
test dword [0x14016b7a0], 0x40000
je 0x140016ea3
lea rax, str.no_messages_received_from_the_socket_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_request
mov dword [rsp + 0x20], 0x279
mov ecx, 0x40000
call fcn.140003693
mov eax, 0xc1c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret