Function at 0x14000533f
Capabilities:
Get socket status
Set socket configuration

Disassembly:
jmp 0x1400170e0
mov r11, rsp
push rbp
push r12
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2b8
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor eax, eax
mov qword [r11 + 8], rbx
xor r12d, r12d
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
lea rcx, [rbp - 0x78]
mov qword [r11 - 0x18], r13
xor edx, edx
mov qword [r11 - 0x20], r14
mov r8d, 0x200
mov qword [r11 - 0x28], r15
mov word [rsp + 0x58], r12w
mov qword [rsp + 0x5a], rax
mov dword [rsp + 0x62], eax
mov word [rsp + 0x66], ax
mov word [rsp + 0x68], r12w
mov qword [rsp + 0x6a], rax
mov dword [rsp + 0x72], eax
mov word [rsp + 0x76], ax
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], r12
mov dword [rbp - 0x80], r12d
call fcn.1400033e1
lock inc qword [0x14016d688]
mov eax, r12d
lea r8, [0x14011d7d5]
xchg qword [0x14016d680], rax
cmp byte [0x14016d690], r12b
lea rax, [0x14011e250]
lea rbx, str.8888
cmovne r8, rax
mov qword [rsp + 0x20], rbx
lea r9, str.0.0.0.0
lea rdx, str.starting__sweb_server__IP__s_port__s_..._n
lea ecx, [r12 + 3]
call fcn.1400049c1
call fcn.1400161d0
call fcn.140018240
mov ecx, dword [0x140168518]
sub ecx, 0xffffff80
call fcn.1400048c7
cmp qword [0x14016d698], r12
je 0x1400177c6
cmp qword [0x14016d6a0], r12
je 0x1400177c6
lea rax, [0x14011e2f0]
mov dword [rsp + 0x40], reloc.WSOCK32.dll_recv
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, str.0.0.0.0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140017c40
test eax, eax
jns 0x140017259
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
lea rax, str.Invalid_server_address_port_number
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb9
jmp 0x1400177ef
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [0x140167310], rax
cmp rax, 0xffffffffffffffff
jne 0x1400172d4
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001782a
test dword [0x14016b7a0], 0x40000
je 0x14001782a
call fcn.1400033cd
mov ecx, dword [rax]
lea rax, str.open_socket_error__error__d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xbf
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov edx, 4
lea r8, str.esif_ws_init
mov ecx, 0x40000
call fcn.140003693
jmp 0x14001780c
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x14001733a
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
call fcn.1400033cd
mov ecx, dword [rax]
lea rax, str.setsockopt_failed__error__d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xc5
jmp 0x1400172b2
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, qword [0x140167310]
call qword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jns 0x140017396
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
call fcn.1400033cd
mov ecx, dword [rax]
lea rax, str.bind_system_call_failed__error__d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xcb
jmp 0x1400172b2
mov rcx, qword [0x140167310]
mov edx, 0xa
call qword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jns 0x1400173ed
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
call fcn.1400033cd
mov ecx, dword [rax]
lea rax, str.listen_system_call_failed__error__d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xd1
jmp 0x1400172b2
mov rax, r12
lock xadd qword [0x14016d680], rax
test rax, rax
jne 0x14001780c
lea r13, str.Client__d_connected_n
lea r14, str.Out_of_memory_n
mov rcx, qword [0x140167310]
lea r15, str.Client__d_disconnected_n
mov r9, qword [0x14016d698]
lea rsi, str.Connection_Limit_Exceeded___d_
mov edx, 1
mov eax, ecx
mov qword [rbp - 0x78], rax
mov ebx, edx
lea r11d, [rcx + 1]
mov dword [rbp - 0x80], edx
mov r10, r12
cmp ebx, 0xa
jge 0x1400174a5
cmp qword [r9], 0xffffffffffffffff
je 0x140017498
mov eax, r12d
test edx, edx
je 0x14001746f
mov r8d, dword [r9]
nop dword [rax + rax]
mov ecx, eax
cmp qword [rbp + rcx*8 - 0x78], r8
je 0x14001746f
inc eax
cmp eax, edx
jb 0x140017460
cmp eax, edx
jne 0x14001748a
cmp edx, 0x40
jae 0x14001748a
mov edx, dword [r9]
mov ecx, eax
mov qword [rbp + rcx*8 - 0x78], rdx
mov edx, dword [rbp - 0x80]
inc edx
mov dword [rbp - 0x80], edx
mov eax, dword [r9]
inc eax
cmp r11d, eax
cmovl r11d, eax
inc ebx
inc r10
add r9, 0x38
cmp r10, 0xa
jl 0x140017443
test r11d, r11d
je 0x14001780c
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 2
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x4c], 0xc350
lea rdx, [rbp - 0x80]
mov ecx, r11d
call qword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x14001780c
test eax, eax
je 0x140017785
mov rcx, qword [0x140167310]
lea rdx, [rbp - 0x80]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x140017612
mov rcx, qword [0x140167310]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x40], reloc.WSOCK32.dll_recv
mov ebx, 1
call qword [sym.imp.WSOCK32.dll_accept]
movsxd r15, eax
cmp r15, 0xffffffffffffffff
je 0x14001779b
mov rax, qword [0x14016d698]
mov edi, r12d
mov rcx, r12
cmp ebx, 0xa
jge 0x1400175ac
cmp qword [rax], 0xffffffffffffffff
je 0x140017560
inc ebx
inc edi
inc rcx
add rax, 0x38
cmp rcx, 0xa
jl 0x140017542
jmp 0x1400175ac
mov rsi, qword [0x14016d698]
imul r14, rcx, 0x38
add rsi, r14
je 0x140017593
lea rcx, [rsi + 0xc]
mov dword [rsi + 8], r12d
call fcn.140017bb0
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14001758c
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [0x14016d698]
lea rsi, str.Connection_Limit_Exceeded___d_
mov qword [r14 + rax], r15
lea r14, str.Out_of_memory_n
cmp edi, 0xa
jge 0x1400175b6
cmp ebx, 0xa
jl 0x14001760b
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x1400175fd
test dword [0x14016b7a0], 0x40000
je 0x1400175fd
mov dword [rsp + 0x30], 0xa
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], rsi
lea r8, str.esif_ws_init
mov edx, 4
mov dword [rsp + 0x20], pe_nt_image_headers64
mov ecx, 0x40000
call fcn.140003693
mov rcx, r15
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x140017785
lea r15, str.Client__d_disconnected_n
mov rsi, r12
nop word [rax + rax]
mov rax, qword [0x14016d698]
mov rdi, qword [rsi + rax]
cmp rdi, 0xffffffffffffffff
je 0x140017774
cmp rdi, qword [0x140167310]
je 0x140017774
lea rdx, [rbp - 0x80]
mov rcx, rdi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x140017774
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001769a
test dword [0x14016b7a0], 0x40000
je 0x14001769a
mov qword [rsp + 0x30], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], r13
lea r8, str.esif_ws_init
mov edx, 4
mov dword [rsp + 0x20], 0x128
mov ecx, 0x40000
call fcn.140003693
mov rbx, qword [0x14016d698]
add rbx, rsi
mov rcx, rbx
call fcn.140016d70
cmp eax, 0xc1c
jne 0x1400176fd
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140017743
test dword [0x14016b7a0], 0x40000
je 0x140017743
mov qword [rsp + 0x30], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x28], r15
lea r8, str.esif_ws_init
mov edx, 4
mov dword [rsp + 0x20], 0x12f
mov ecx, 0x40000
call fcn.140003693
jmp 0x140017743
cmp eax, 0x708
jne 0x14001776b
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140017743
test dword [0x14016b7a0], 0x40000
je 0x140017743
mov qword [rsp + 0x28], r14
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov dword [rsp + 0x20], 0x133
mov edx, 4
mov ecx, 0x40000
call fcn.140003693
test rbx, rbx
je 0x14001776b
lea rcx, [rbx + 0xc]
mov dword [rbx + 8], r12d
call fcn.140017bb0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140017764
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
lea rcx, [rbx + 0xc]
call fcn.140017bb0
add rsi, 0x38
cmp rsi, 0x230
jl 0x140017620
mov rax, r12
lock xadd qword [0x14016d680], rax
test rax, rax
jne 0x14001780c
jmp 0x140017410
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
lea rax, str.accept_2_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x108
jmp 0x1400177ef
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14001780c
test dword [0x14016b7a0], 0x40000
je 0x14001780c
lea rax, str.Out_of_memory
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb1
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov edx, 4
lea r8, str.esif_ws_init
mov ecx, 0x40000
call fcn.140003693
mov rcx, qword [0x140167310]
cmp rcx, 0xffffffffffffffff
je 0x14001782a
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [0x140167310], 0xffffffffffffffff
cmp qword [0x14016d698], r12
mov r15, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2a8]
mov r13, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2d8]
je 0x140017910
mov rdi, r12
nop word [rax + rax]
mov rbx, qword [0x14016d698]
add rbx, rdi
je 0x1400178e7
mov rcx, qword [rbx + 0xc]
test rcx, rcx
je 0x14001787a
call fcn.140002d65
mov rcx, qword [rbx + 0x14]
test rcx, rcx
je 0x140017888
call fcn.140002d65
mov rcx, qword [rbx + 0x24]
test rcx, rcx
je 0x140017896
call fcn.140002d65
mov rcx, qword [rbx + 0x1c]
test rcx, rcx
je 0x1400178a4
call fcn.140002d65
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x1400178b2
call fcn.140002d65
mov qword [rbx + 0xc], r12
mov qword [rbx + 0x14], r12
mov qword [rbx + 0x24], r12
mov qword [rbx + 0x1c], r12
mov qword [rbx + 0x2c], r12
mov dword [rbx + 0x34], 0xf0
mov rcx, qword [rbx]
mov dword [rbx + 8], r12d
cmp rcx, 0xffffffffffffffff
je 0x1400178e7
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
add rdi, 0x38
cmp rdi, 0x230
jl 0x140017860
mov rcx, qword [0x14016d698]
test rcx, rcx
je 0x140017909
call fcn.140002d65
mov qword [0x14016d698], r12
mov rcx, qword [0x14016d6b0]
mov rdi, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x2d0]
test rcx, rcx
je 0x140017931
call fcn.140002d65
mov rcx, qword [0x14016d6a0]
test rcx, rcx
je 0x140017942
call fcn.140002d65
mov qword [0x14016d6b0], r12
mov qword [0x14016d6a0], r12
mov dword [0x14016d6a8], r12d
call qword [sym.imp.WSOCK32.dll_WSACleanup]
lock dec qword [0x14016d688]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x2b8
pop r12
pop rbp
ret