Function at 0x140089690
Capabilities:
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.140091cd0
sub rsp, rax
mov rax, qword [0x1400b2040]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov r13, rcx
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x78], r12d
mov ecx, 0x202
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140089cd1
mov r8d, 6
mov r14d, 1
mov edx, r14d
mov edi, 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x140089ccb
mov dword [rsp + 0x78], r14d
lea r8, [rsp + 0x78]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov word [rbp - 0x40], di
mov ecx, 0xf822
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x3e], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x3c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140089cc2
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140089cc2
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
mov rax, qword [r13]
cmp dword [rax], r14d
je 0x1400897db
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x40], rax
cmp rax, rdi
jne 0x1400897d6
mov qword [rsp + 0x68], 0x32
lea rcx, [rsp + 0x68]
call fcn.140064260
mov rcx, qword [r13]
cmp dword [rcx], r14d
jne 0x1400897a2
mov rdi, qword [rsp + 0x40]
mov rcx, qword [r13]
cmp dword [rcx], 1
je 0x140089cd1
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov rbx, r12
mov qword [rbp - 0x70], rbx
mov r15d, recv
mov qword [rbp - 0x68], r15
mov byte [rbp - 0x80], bl
cmp dword [rcx], 1
je 0x1400899ba
nop dword [rax]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14008986b
lea rdx, str.Error_in_recv__:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14005fab0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x140089882
test eax, eax
jne 0x14008989b
lea rdx, str.Client_disconnected
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14005fab0
lea rdx, [0x140089d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rbp - 0x70]
jmp 0x1400899a9
lea rax, [rbp + 0x170]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400898b0
lea rdx, [rbp + 0x170]
lea rcx, [rbp - 0x80]
call fcn.14005f5a0
mov rbx, qword [rbp - 0x70]
cmp rbx, 4
jbe 0x140089952
lea rcx, [rbx - 4]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
cmp rbx, rcx
jb 0x140089d0f
sub rbx, rcx
mov r8, 0xffffffffffffffff
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
add rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140052840
or esi, 3
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
cmova rax, rcx
mov rbx, qword [rbp - 0x70]
cmp qword [rsp + 0x58], 4
jne 0x14008995c
cmp dword [rax], 0xa0d0a0d
jne 0x14008995c
mov dil, 1
jmp 0x14008995f
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor dil, dil
test sil, 1
je 0x14008999f
and esi, 0xfffffffe
cmp rdx, 0xf
jbe 0x14008999f
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089996
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140089b01
call fcn.140090d90
mov rbx, qword [rbp - 0x70]
test dil, dil
jne 0x1400899b6
mov rdi, qword [rsp + 0x40]
mov rax, qword [r13]
cmp dword [rax], 1
jne 0x140089810
mov r15, qword [rbp - 0x68]
lea rsi, [rbp - 0x80]
mov r12, qword [rbp - 0x80]
cmp r15, 0xf
cmova rsi, r12
cmp rbx, 5
jb 0x140089a27
lea r14, [rbx + rsi]
lea r8, [r14 - 4]
sub r8, rsi
mov edx, 0x63
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x140089a21
cmp dword [rdi], 0x65646f63
jne 0x140089a02
cmp byte [rdi + 4], 0x3d
je 0x140089b08
inc rdi
lea r8, [r14 - 4]
sub r8, rdi
mov edx, 0x63
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x1400899f0
mov r14d, 1
shl r14, 5
lea rcx, [r13 + 0x1b8]
add rcx, r14
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, 0x2c
jb 0x140089d09
cmp qword [rcx + 0x18], 0xf
jbe 0x140089a5a
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x2c
lea r9, str.HTTP_1.1_200_OK_r_nContent_Type:_text_html_r_n_r_n
lea rcx, [rbp - 0x60]
call fcn.140061180
mov r8d, dword [rbp - 0x50]
inc r8d
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140089c33
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089c2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089c2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rdi, rsi
cmp rdi, 0xffffffffffffffff
je 0x140089a21
lea rsi, [rbp - 0x80]
cmp r15, 0xf
cmova rsi, r12
cmp rbx, 1
jb 0x140089b75
lea rax, [rbx - 1]
cmp rdi, rax
ja 0x140089b75
lea r14, [rax + rsi]
lea rcx, [rdi + rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, 0x26
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140089b75
nop
cmp byte [rax], 0x26
je 0x140089c19
inc rax
lea r8, [r14 + 1]
sub r8, rax
mov edx, 0x26
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140089b50
mov rax, 0xffffffffffffffff
mov r14d, 1
cmp rax, 0xffffffffffffffff
je 0x140089a27
lea rcx, [rdi + 5]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
cmp rbx, rcx
jb 0x140089d03
sub rax, rdi
lea r8, [rax - 5]
sub rbx, rcx
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 0x80]
cmp r15, 0xf
cmova rdx, r12
add rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.140052840
nop
lea rcx, [r13 + 0x10]
lea rdx, [rbp - 0x60]
call fcn.140085cc0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140089c26
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089c21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089c21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rax, rsi
jmp 0x140089b7c
call fcn.140090d90
xor r14d, r14d
jmp 0x140089a27
call fcn.140090d90
lea rcx, [r13 + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140089c4d
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [r13 + 0x7c], 0x7fffffff
jne 0x140089c6b
mov dword [r13 + 0x7c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rbx, qword [r13 + 0x20]
lea rcx, [r13 + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
setne bl
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140089cbd
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089cb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089cb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140090d90
movzx eax, bl
jmp 0x140089cd3
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.140090940
lea r11, [rsp + 0x1280]
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
call fcn.14005fa90
nop
call fcn.140052380
int3
call fcn.14005fa90
int3