Function at 0x140010580
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 rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], 0
jl 0x14000fe4d
test dword [0x140124900], 0x40000
je 0x14000fe4d
lea rax, str.Socket_in_its_opening_state_n
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_open_client
mov qword [rsp + 0x28], rax
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x26d
call fcn.140001a41
lea r8, [rbx + 0xc]
mov rdx, rsi
mov rcx, rdi
call fcn.140001c08
cmp eax, 0xf2
je 0x14000ff5f
cmp eax, 0xf1
je 0x14000ff34
cmp eax, 0xf3
jne 0x14000ff0f
lea r9, [rsp + 0x50]
lea rcx, [rbx + 0xc]
mov r8, r14
mov rdx, rdi
call fcn.140001a00
test eax, eax
je 0x14000fee8
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14000ffca
test dword [0x140124900], 0x40000
je 0x14000ffca
lea rax, str.Unable_to_build_response_header_n
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_open_client
mov qword [rsp + 0x28], rax
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x28e
call fcn.140001a41
jmp 0x14000ffca
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140010730
cmp eax, 1
je 0x14000ffca
mov dword [rbx + 8], 1
xor eax, eax
jmp 0x14000ffcf
cmp eax, 0xff
jne 0x14000ff08
mov r8d, dword [0x140127a10]
mov rdx, qword [0x140127a08]
mov r9, rsi
mov rcx, rbx
call fcn.1400015d7
jmp 0x14000ffcf
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14000ffa5
test dword [0x140124900], 0x40000
je 0x14000ffa5
lea rax, str.Improper_format_for_frame_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x275
jmp 0x14000ff88
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14000ffa5
test dword [0x140124900], 0x40000
je 0x14000ffa5
lea rax, str.Incomplete_frame_received_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x273
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_open_client
mov edx, 4
mov ecx, 0x40000
call fcn.140001a41
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.14000fba0
mov rdx, rdi
mov rcx, rbx
movsxd r8, eax
mov qword [rsp + 0x50], r8
call fcn.140010730
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 r15d, r15d
mov r13, r9
mov r12, r8
mov ebx, r15d
mov r14, rdx
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x30], rbx
mov edi, r15d
test rbx, rbx
je 0x1400100d8
mov r9, rbx
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14008cc4c
mov r13, qword [rbp - 0x30]
mov qword [rbp - 0x30], r15
lea rax, [rbp - 0x30]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x18]
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140001343
cmp dword [reloc.WSOCK32.dll_accept], 4
mov esi, eax
jl 0x140010140
test dword [0x140124900], 0x40000
je 0x140010140
mov dword [rsp + 0x30], eax
lea rax, str.FrameType:__d_n
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], rax
lea r8, str.esif_ws_client_process_active_client
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x2c2
call fcn.140001a41
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140010194
test rdi, rdi
jne 0x140010178
mov rcx, rbx
call fcn.14008c958
mov rdi, rax
test rax, rax
je 0x14001016f
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14008ca20
mov rbx, qword [rbp - 0x30]
test rdi, rdi
je 0x140010343
mov r8, qword [rbp - 0x20]
mov r9, rbx
mov rdx, rbx
add r8, qword [rbp - 0x18]
mov rcx, rdi
call fcn.14008cc4c
mov rbx, qword [rbp - 0x30]
jmp 0x1400101a8
test rdi, rdi
je 0x1400101a5
mov rcx, rdi
call fcn.14008c8c8
mov rbx, qword [rbp - 0x30]
mov rdi, r15
cmp esi, 0xf2
je 0x1400103c8
cmp esi, 0xf1
je 0x14001039d
cmp esi, 8
je 0x14001036a
cmp esi, 1
jne 0x1400102f7
mov rsi, qword [rbp - 0x20]
lea rcx, [rsi + 1]
call fcn.14008c958
mov rbx, rax
test rax, rax
je 0x140010343
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.14008ca20
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov r9, rdx
mov rcx, rbx
call fcn.14008cc4c
mov rax, qword [rbp - 0x20]
mov rdx, r12
mov rcx, rbx
mov byte [rbx + rax], r15b
call fcn.14008d154
mov rcx, rbx
mov rdx, rax
call fcn.14000178f
mov eax, dword [0x140127a10]
cmp r12, rax
je 0x14001023f
mov r14, qword [0x140127a08]
mov r12d, eax
cmp dword [reloc.WSOCK32.dll_accept], 4
mov rsi, qword [0x140127a18]
jl 0x140010291
test dword [0x140124900], 0x40000
je 0x140010291
lea rax, str.Message_Received:__s__n
mov qword [rsp + 0x30], rsi
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], rax
lea r8, str.esif_ws_server_get_rest_response
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x168
call fcn.140001a41
test rsi, rsi
je 0x1400102ed
mov edx, dword [0x1401214d4]
mov rcx, rsi
sub edx, 0xffffff80
call fcn.14008d154
mov rcx, qword [rbp - 0x10]
mov r9, r12
test rax, rax
mov r8, r14
mov dword [rsp + 0x28], 1
cmovne rcx, rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], rcx
mov rdx, rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400016c7
mov r8, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140010730
cmp eax, 1
je 0x14001034e
mov rcx, rbx
call fcn.14008c8c8
jmp 0x140010331
cmp esi, 0xa
jne 0x140010335
lea rax, [rbp - 0x28]
lea rcx, [0x1400dd5dd]
mov r9, r12
mov r8, r14
xor edx, edx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.1400016c7
mov r8, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140010730
mov rbx, qword [rbp - 0x30]
test rbx, rbx
jne 0x1400100bf
jmp 0x140010444
mov r15d, 0x708
jmp 0x140010444
mov r15d, 0xc1c
test rbx, rbx
je 0x140010444
mov rcx, rbx
call fcn.14008c8c8
jmp 0x140010444
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001040e
test dword [0x140124900], 0x40000
je 0x14001040e
lea rax, str.Close_frame_received__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2ec
jmp 0x1400103f1
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001040e
test dword [0x140124900], 0x40000
je 0x14001040e
lea rax, str.Improper_format_for_frame__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2d9
jmp 0x1400103f1
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001040e
test dword [0x140124900], 0x40000
je 0x14001040e
lea rax, str.Incomplete_frame_received__closing_socket_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2d7
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_active_client
mov edx, 4
mov ecx, 0x40000
call fcn.140001a41
lea rax, [rbp - 0x28]
mov r9, r12
mov r8, r14
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call fcn.1400016c7
mov r8, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140010730
mov r15d, 0xc1c
test rdi, rdi
je 0x140010451
mov rcx, rdi
call fcn.14008c8c8
lea r11, [rsp + 0x70]
mov eax, r15d
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 rdi
sub rsp, 0x40
mov r8d, dword [0x1401214d4]
mov rdi, rcx
mov rcx, qword [0x140127a08]
sub r8d, 0xffffff80
xor edx, edx
call fcn.14008ca20
mov r8d, dword [0x1401214d4]
mov rdx, qword [0x140127a08]
mov rcx, qword [rdi]
sub r8d, 0xffffff80
xor r9d, r9d
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rbx, eax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001067c
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001061f
test dword [0x140124900], 0x40000
je 0x14001061f
lea rax, str._d_bytes_received_n
mov dword [rsp + 0x30], ebx
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], rax
lea r8, str.esif_ws_client_process_request
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x249
call fcn.140001a41
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x140010655
dec ecx
jne 0x1400106c2
mov r8d, dword [0x1401214d4]
mov rdx, qword [0x140127a08]
mov r9, rbx
sub r8d, 0xffffff80
mov rcx, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp 0x140010070
mov r8d, dword [0x1401214d4]
mov rdx, qword [0x140127a08]
mov r9, rbx
sub r8d, 0xffffff80
mov rcx, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp 0x14000fde0
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x1400106c2
test dword [0x140124900], 0x40000
je 0x1400106c2
lea rax, str.no_messages_received_from_the_socket_n
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_request
mov qword [rsp + 0x28], rax
mov edx, 4
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x245
call fcn.140001a41
mov eax, 0xc1c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret