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

Disassembly:
jmp 0x140010a00
mov r11, rsp
push rbp
push r12
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2b8
mov rax, qword [0x1400fae80]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor eax, eax
xor r12d, r12d
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x78]
xor edx, edx
mov r8d, 0x200
mov qword [r11 + 0x18], rdi
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.14006c5d0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400fd548], rax
lock inc qword [0x1400fd540]
lea r9, str.8888
lea r8, str.0.0.0.0
lea rdx, str.Starting_WebServer__s__s_n
lea ecx, [r12 + 3]
mov eax, r12d
xchg qword [0x1400fd538], rax
call fcn.140001410
call fcn.14000fcb0
mov ecx, 0x230
call fcn.14006c500
mov rdi, rax
test rax, rax
je 0x140010aed
xor edx, edx
mov r8d, 0x230
mov rcx, rax
call fcn.14006c5d0
mov ecx, 0x20000
mov qword [0x1400fd520], rdi
call fcn.14006c500
mov rbx, rax
test rax, rax
je 0x140010b16
xor edx, edx
mov r8d, 0x20000
mov rcx, rax
call fcn.14006c5d0
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x2b0], r13
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
mov qword [0x1400fd528], rbx
test rdi, rdi
je 0x140011126
test rbx, rbx
je 0x140011126
call fcn.140011a10
lea rax, [0x1400bd728]
lea r9, str.8888
lea r8, str.0.0.0.0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], reloc.WSOCK32.dll_recv
call fcn.1400115a0
test eax, eax
jns 0x140010bc7
cmp word [rsp + 0x5a], r12w
jne 0x140010bc7
cmp dword [section..data], 4
jl 0x14001116c
test dword [0x1400f6060], 0x40000
je 0x14001116c
lea rax, str.Invalid_server_address_port_number
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa0
jmp 0x14001114f
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [0x1400f62d0], rax
cmp rax, 0xffffffffffffffff
jne 0x140010c1a
cmp dword [section..data], 4
jl 0x14001118a
test dword [0x1400f6060], 0x40000
je 0x14001118a
lea rax, str.open_socket_error
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa6
jmp 0x14001114f
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov rcx, qword [0x1400f62d0]
test eax, eax
jns 0x140010c8d
call qword [sym.imp.WSOCK32.dll_closesocket]
cmp dword [section..data], 4
mov qword [0x1400f62d0], 0xffffffffffffffff
jl 0x14001118a
test dword [0x1400f6060], 0x40000
je 0x14001118a
lea rax, str.setsockopt_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xae
jmp 0x14001114f
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WSOCK32.dll_bind]
mov rcx, qword [0x1400f62d0]
cmp eax, 0xffffffff
jge 0x140010cf0
call qword [sym.imp.WSOCK32.dll_closesocket]
cmp dword [section..data], 4
mov qword [0x1400f62d0], 0xffffffffffffffff
jl 0x14001118a
test dword [0x1400f6060], 0x40000
je 0x14001118a
lea rax, str.bind_sysem_call_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb6
jmp 0x14001114f
mov edx, 0xa
call qword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jns 0x140010d35
cmp dword [section..data], 4
jl 0x14001116c
test dword [0x1400f6060], 0x40000
je 0x14001116c
lea rax, str.listen_system_call_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xbc
jmp 0x14001114f
mov rax, r12
lock xadd qword [0x1400fd538], rax
test rax, rax
jne 0x14001116c
lea r13, str.Client__d_connected_n
lea r14, str.Out_of_memory_n
mov rcx, qword [0x1400f62d0]
mov edx, r12d
lea r15, str.Client__d_disconnected_n
lea rsi, str.Connection_Limit_Exceeded___d_
mov r10d, r12d
mov ebx, r12d
mov dword [rbp - 0x80], edx
cmp rcx, 0xffffffffffffffff
je 0x140010d93
mov edx, 1
mov eax, ecx
lea r10d, [rcx + 1]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x80], edx
mov ebx, edx
mov r9, qword [0x1400fd520]
mov r11, r12
nop dword [rax]
cmp ebx, 0x40
jge 0x140010dfa
cmp qword [r9], 0xffffffffffffffff
je 0x140010ded
mov eax, r12d
test edx, edx
je 0x140010dc4
mov r8d, dword [r9]
mov ecx, eax
cmp qword [rbp + rcx*8 - 0x78], r8
je 0x140010dc4
inc eax
cmp eax, edx
jb 0x140010db5
cmp eax, edx
jne 0x140010ddf
cmp edx, 0x40
jae 0x140010ddf
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 r10d, eax
cmovl r10d, eax
inc ebx
inc r11
add r9, 0x38
cmp r11, 0xa
jl 0x140010da0
test r10d, r10d
je 0x14001116c
lea rax, [rsp + 0x48]
lea rdx, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov ecx, r10d
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 0xc350
call qword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x14001116c
test eax, eax
je 0x1400110e5
mov rcx, qword [0x1400f62d0]
lea rdx, [rbp - 0x80]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x140010f70
mov rcx, qword [0x1400f62d0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
mov ebx, r12d
mov dword [rsp + 0x40], reloc.WSOCK32.dll_recv
setne bl
call qword [sym.imp.WSOCK32.dll_accept]
movsxd r15, eax
cmp r15, 0xffffffffffffffff
je 0x1400110fb
mov rax, qword [0x1400fd520]
mov edi, r12d
mov rcx, r12
nop dword [rax]
cmp ebx, 0x40
jge 0x140010f0a
cmp qword [rax], 0xffffffffffffffff
je 0x140010ebe
inc rcx
inc ebx
inc edi
add rax, 0x38
cmp rcx, 0xa
jl 0x140010ea0
jmp 0x140010f0a
mov rsi, qword [0x1400fd520]
imul r14, rcx, 0x38
add rsi, r14
je 0x140010ef1
lea rcx, [rsi + 0xc]
mov dword [rsi + 8], r12d
call fcn.140011510
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x140010eea
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [0x1400fd520]
lea rsi, str.Connection_Limit_Exceeded___d_
mov qword [r14 + rax], r15
lea r14, str.Out_of_memory_n
cmp edi, 0xa
jge 0x140010f14
cmp ebx, 0x40
jl 0x140010f69
cmp dword [section..data], 4
jl 0x140010f5b
test dword [0x1400f6060], 0x40000
je 0x140010f5b
mov dword [rsp + 0x30], 0xa
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov edx, 4
mov ecx, 0x40000
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x105
call fcn.140001a82
mov rcx, r15
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1400110e5
lea r15, str.Client__d_disconnected_n
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1400fd520]
mov rdi, qword [rax + rsi]
cmp rdi, 0xffffffffffffffff
je 0x1400110d4
cmp rdi, qword [0x1400f62d0]
je 0x1400110d4
lea rdx, [rbp - 0x80]
mov rcx, rdi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1400110d4
cmp dword [section..data], 4
jl 0x140010ffa
test dword [0x1400f6060], 0x40000
je 0x140010ffa
mov qword [rsp + 0x30], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov edx, 4
mov ecx, 0x40000
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x115
call fcn.140001a82
mov rbx, qword [0x1400fd520]
add rbx, rsi
mov rcx, rbx
call fcn.140010690
cmp eax, 0xc1c
jne 0x14001105d
cmp dword [section..data], 4
jl 0x1400110a3
test dword [0x1400f6060], 0x40000
je 0x1400110a3
mov qword [rsp + 0x30], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov edx, 4
mov ecx, 0x40000
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x11c
call fcn.140001a82
jmp 0x1400110a3
cmp eax, 0x708
jne 0x1400110cb
cmp dword [section..data], 4
jl 0x1400110a3
test dword [0x1400f6060], 0x40000
je 0x1400110a3
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov edx, 4
mov ecx, 0x40000
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x120
call fcn.140001a82
test rbx, rbx
je 0x1400110cb
lea rcx, [rbx + 0xc]
mov dword [rbx + 8], r12d
call fcn.140011510
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400110c4
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
lea rcx, [rbx + 0xc]
call fcn.140011510
add rsi, 0x38
cmp rsi, 0x230
jl 0x140010f80
mov rax, r12
lock xadd qword [0x1400fd538], rax
test rax, rax
jne 0x14001116c
jmp 0x140010d58
cmp dword [section..data], 4
jl 0x14001116c
test dword [0x1400f6060], 0x40000
je 0x14001116c
lea rax, str.accept_2_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf5
jmp 0x14001114f
cmp dword [section..data], 4
jl 0x14001116c
test dword [0x1400f6060], 0x40000
je 0x14001116c
lea rax, str.Out_of_memory
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], __WSAFDIsSet
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_init
mov edx, 4
mov ecx, 0x40000
call fcn.140001a82
mov rcx, qword [0x1400f62d0]
cmp rcx, 0xffffffffffffffff
je 0x14001118a
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [0x1400f62d0], 0xffffffffffffffff
cmp qword [0x1400fd520], r12
mov r15, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2a8]
mov r13, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2d8]
je 0x140011270
mov rdi, r12
nop word [rax + rax]
mov rbx, qword [0x1400fd520]
add rbx, rdi
je 0x140011247
mov rcx, qword [rbx + 0xc]
test rcx, rcx
je 0x1400111da
call fcn.14006c470
mov rcx, qword [rbx + 0x14]
test rcx, rcx
je 0x1400111e8
call fcn.14006c470
mov rcx, qword [rbx + 0x24]
test rcx, rcx
je 0x1400111f6
call fcn.14006c470
mov rcx, qword [rbx + 0x1c]
test rcx, rcx
je 0x140011204
call fcn.14006c470
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x140011212
call fcn.14006c470
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 0x140011247
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
add rdi, 0x38
cmp rdi, 0x230
jl 0x1400111c0
mov rcx, qword [0x1400fd520]
test rcx, rcx
je 0x140011269
call fcn.14006c470
mov qword [0x1400fd520], r12
mov rcx, qword [0x1400fd530]
mov rdi, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x2d0]
test rcx, rcx
je 0x140011291
call fcn.14006c470
mov rcx, qword [0x1400fd528]
test rcx, rcx
je 0x1400112a2
call fcn.14006c470
mov qword [0x1400fd530], r12
mov qword [0x1400fd528], r12
call qword [sym.imp.WSOCK32.dll_WSACleanup]
lock dec qword [0x1400fd540]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006cfe0
add rsp, 0x2b8
pop r12
pop rbp
ret