Function at 0x14002b2b0
Capabilities:
Get local ipv4 addresses
Get socket information
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x7c0
mov rax, qword [0x1400a5038]
xor rax, rsp
mov qword [rsp + 0x7b0], rax
mov rsi, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x48], 0xa
mov dword [rsp + 0x4c], 8
mov dword [rsp + 0x50], 0x15f90
mov dword [rsp + 0x54], 0x15f90
call fcn.14002ff90
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [0x1400a9460]
mov rcx, r10
call qword [0x140088938]
call fcn.14002ff90
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x18
mov r9d, 1
lea r8, [rsp + 0x4c]
lea rdx, [0x1400a9400]
mov rcx, r10
call qword [0x140088938]
call fcn.14002ff90
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2bf20
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1400a9440]
mov rcx, r10
call qword [0x140088938]
call fcn.14002ff90
mov r10, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2bf20
xor r9d, r9d
lea r8, [rsp + 0x54]
lea rdx, [0x1400a9420]
mov rcx, r10
call qword [0x140088938]
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0x38], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 0x3c], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x40], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0x44], eax
lea r14, vtable.LogItem.0
mov qword [rsp + 0x140], r14
xor ebx, ebx
mov qword [rsp + 0x158], rbx
mov qword [rsp + 0x160], 7
mov word [rsp + 0x148], bx
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x180], 7
mov word [rsp + 0x168], bx
mov dword [rsp + 0x188], 1
mov dword [rsp + 0x18c], 1
mov qword [rsp + 0x230], rbx
mov qword [rsp + 0x238], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x220], bl
lea r8d, [rbx + 3]
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x220]
call fcn.140024110
nop
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x140]
call fcn.14001df20
nop
mov rdx, qword [rsp + 0x238]
cmp rdx, 0x10
jb 0x14002b4ef
inc rdx
mov rcx, qword [rsp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b4ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b61d
call fcn.1400570c4
mov dword [rsp + 0x188], ebx
mov rdx, rsi
lea rcx, [rsp + 0x140]
call fcn.140026680
mov rdi, rax
mov dword [rax + 0x48], 1
mov qword [rsp + 0x210], rbx
mov qword [rsp + 0x218], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x200], 0
mov r8d, 2
lea rdx, [0x1400923d8]
lea rcx, [rsp + 0x200]
call fcn.140024110
nop
lea rdx, [rsp + 0x200]
mov rcx, rdi
call fcn.14001df20
nop
mov rdx, qword [rsp + 0x218]
cmp rdx, 0x10
jb 0x14002b59b
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b61d
call fcn.1400570c4
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x1a8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x190], 0
mov r8d, 0x35
lea rdx, str.Socket_server_initialize_called._Initializing_Winsock
lea rcx, [rsp + 0x190]
call fcn.140024110
nop
lea rdx, [rsp + 0x190]
mov rcx, rdi
call fcn.14001df20
nop
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0x10
jb 0x14002b62a
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b624
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b624
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
nop
lea rcx, [rsp + 0x140]
call fcn.14001d880
lea rdx, [rsi + 0x68]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002b713
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x158], rbx
mov qword [rsp + 0x160], 7
mov word [rsp + 0x148], bx
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x180], 7
mov word [rsp + 0x168], bx
mov dword [rsp + 0x188], 1
mov dword [rsp + 0x18c], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x140]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.WSAStartup_failed:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x140]
call fcn.14001d880
mov eax, dword [rsp + 0x40]
jmp 0x14002c646
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xd8], xmm1
mov dword [rsp + 0xbc], 2
mov dword [rsp + 0xc0], 1
mov dword [rsp + 0xc4], 6
mov dword [rsp + 0xb8], 1
mov qword [rsp + 0x1b0], r14
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x1d0], 7
mov word [rsp + 0x1b8], bx
mov qword [rsp + 0x1e8], rbx
mov qword [rsp + 0x1f0], 7
mov word [rsp + 0x1d8], bx
mov dword [rsp + 0x1f8], 1
mov dword [rsp + 0x1fc], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x1b0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Resolving_the_local_address_and_port_to_be_used_by_the_server
call fcn.14001dd30
nop
lea rcx, [rsp + 0x1b0]
call fcn.14001d880
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0x98], rbx
lea rcx, [0x1400a6d80]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1400a6d80]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xb8]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002b915
mov qword [rsp + 0x1b0], r14
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x1d0], 7
mov word [rsp + 0x1b8], bx
mov qword [rsp + 0x1e8], rbx
mov qword [rsp + 0x1f0], 7
mov word [rsp + 0x1d8], bx
mov dword [rsp + 0x1f8], 1
mov dword [rsp + 0x1fc], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x1b0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.getaddrinfo_failed:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x1b0]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
jmp 0x14002c646
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rsp + 0xa0], rax
mov r15, qword [rsp + 0x98]
mov qword [rsp + 0xe8], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0xf8], 1
mov ecx, 0x20
call fcn.1400570dc
mov rdi, rax
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xa0]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_resource_struct_addrinfo____ptr64__void____cdecl___struct_addrinfo____ptr64__.0
mov qword [rdi], rax
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], r15
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x250], r14
mov qword [rsp + 0x268], rbx
mov qword [rsp + 0x270], 7
mov word [rsp + 0x258], bx
mov qword [rsp + 0x288], rbx
mov qword [rsp + 0x290], 7
mov word [rsp + 0x278], bx
mov dword [rsp + 0x298], 1
mov dword [rsp + 0x29c], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x250]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Creating_a_SOCKET_for_the_server_to_listen_for_client_connections
call fcn.14001dd30
nop
lea rcx, [rsp + 0x250]
call fcn.14001d880
mov r8d, dword [r15 + 0xc]
mov edx, dword [r15 + 8]
mov ecx, dword [r15 + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x14002bb7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x2a0], r14
mov qword [rsp + 0x2b8], rbx
mov qword [rsp + 0x2c0], 7
mov word [rsp + 0x2a8], bx
mov qword [rsp + 0x2d8], rbx
mov qword [rsp + 0x2e0], 7
mov word [rsp + 0x2c8], bx
mov dword [rsp + 0x2e8], 1
mov dword [rsp + 0x2ec], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x2a0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Error_at_socket__:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x88]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x2a0]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14002bb74
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rcx, rdi
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002bb74
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
mov eax, esi
jmp 0x14002c646
mov qword [rsp + 0x2f0], r14
mov qword [rsp + 0x308], rbx
mov qword [rsp + 0x310], 7
mov word [rsp + 0x2f8], bx
mov qword [rsp + 0x328], rbx
mov qword [rsp + 0x330], 7
mov word [rsp + 0x318], bx
mov dword [rsp + 0x338], 1
mov dword [rsp + 0x33c], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x2f0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Setting_socket_I_O_mode_to_non_blocking
call fcn.14001dd30
nop
lea rcx, [rsp + 0x2f0]
call fcn.14001d880
mov dword [rsp + 0x70], 1
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002bd5a
mov qword [rsp + 0x340], r14
mov qword [rsp + 0x358], rbx
mov qword [rsp + 0x360], 7
mov word [rsp + 0x348], bx
mov qword [rsp + 0x378], rbx
mov qword [rsp + 0x380], 7
mov word [rsp + 0x368], bx
mov dword [rsp + 0x388], 1
mov dword [rsp + 0x38c], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x340]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.ioctlsocket_failed_with_error:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x340]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14002bb74
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rcx, rdi
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002bb74
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
mov eax, esi
jmp 0x14002c646
mov qword [rsp + 0x390], r14
mov qword [rsp + 0x3a8], rbx
mov qword [rsp + 0x3b0], 7
mov word [rsp + 0x398], bx
mov qword [rsp + 0x3c8], rbx
mov qword [rsp + 0x3d0], 7
mov word [rsp + 0x3b8], bx
mov dword [rsp + 0x3d8], 1
mov dword [rsp + 0x3dc], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x390]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Binding_local_address_with_a_socket
call fcn.14001dd30
nop
lea rcx, [rsp + 0x390]
call fcn.14001d880
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x14002bf40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x3e0], r14
mov qword [rsp + 0x3f8], rbx
mov qword [rsp + 0x400], 7
mov word [rsp + 0x3e8], bx
mov qword [rsp + 0x418], rbx
mov qword [rsp + 0x420], 7
mov word [rsp + 0x408], bx
mov dword [rsp + 0x428], 1
mov dword [rsp + 0x42c], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x3e0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.bind_failed_with_error:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x90]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x3e0]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14002bb74
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rcx, rdi
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002bb74
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
mov eax, esi
jmp 0x14002c646
mov qword [rsp + 0x430], r14
mov qword [rsp + 0x448], rbx
mov qword [rsp + 0x450], 7
mov word [rsp + 0x438], bx
mov qword [rsp + 0x468], rbx
mov qword [rsp + 0x470], 7
mov word [rsp + 0x458], bx
mov dword [rsp + 0x478], 1
mov dword [rsp + 0x47c], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x430]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Retrieving_dynamically_assigned_port_and_storing_it_in_Windows_Registry
call fcn.14001dd30
nop
lea rcx, [rsp + 0x430]
call fcn.14001d880
xorps xmm0, xmm0
movups xmmword [rsp + 0x240], xmm0
mov dword [rsp + 0x74], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x240]
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14002c133
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x480], r14
mov qword [rsp + 0x498], rbx
mov qword [rsp + 0x4a0], 7
mov word [rsp + 0x488], bx
mov qword [rsp + 0x4b8], rbx
mov qword [rsp + 0x4c0], 7
mov word [rsp + 0x4a8], bx
mov dword [rsp + 0x4c8], 1
mov dword [rsp + 0x4cc], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x480]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.getsockname_failed_with_error:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x480]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14002bb74
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rcx, rdi
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002bb74
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
mov eax, esi
jmp 0x14002c646
movzx ecx, word [rsp + 0x242]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x44], ax
movzx eax, ax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x4d0], r14
mov qword [rsp + 0x4e8], rbx
mov qword [rsp + 0x4f0], 7
mov word [rsp + 0x4d8], bx
mov qword [rsp + 0x508], rbx
mov qword [rsp + 0x510], 7
mov word [rsp + 0x4f8], bx
mov dword [rsp + 0x518], 1
mov dword [rsp + 0x51c], 2
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x4d0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, [0x1400925e8]
call fcn.14001dd30
mov rcx, rax
lea rdx, str.SocketHeciServer::SocketServer::InitializeInternal
call fcn.14001dd30
mov rcx, rax
lea rdx, [0x1400923d8]
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Socket_bound__listening_on_port:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x44]
call fcn.1400268a0
nop
lea rcx, [rsp + 0x4d0]
call fcn.14001d880
lea rcx, [rsp + 0x80]
call fcn.140048130
nop
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.140037a10
test al, al
je 0x14002c66f
mov rcx, qword [rsp + 0x80]
call fcn.140029fe0
nop
lea rdx, [0x1400a92e0]
lea rcx, [rsp + 0x120]
call fcn.1400239e0
mov r15, rax
mov qword [rsp + 0x90], rax
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.1400239e0
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.140035eb0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14002c2db
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x14002c2d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c312
mov rcx, r8
call fcn.1400570c4
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
lea rcx, [rsp + 0x60]
call fcn.1400363f0
test al, al
je 0x14002c324
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140037a10
test al, al
je 0x14002c6c7
jmp 0x14002c319
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0x60]
call fcn.140029fe0
nop
mov r15d, 0x80000000
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + r15]
cmp rax, 3
jbe 0x14002c349
cmp rcx, 0xffffffff80000005
je 0x14002c349
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14002c364
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + r15]
cmp rax, 3
jbe 0x14002c385
cmp rcx, 0xffffffff80000005
je 0x14002c385
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x610], r14
mov qword [rsp + 0x628], rbx
mov qword [rsp + 0x630], 7
mov word [rsp + 0x618], bx
mov qword [rsp + 0x648], rbx
mov qword [rsp + 0x650], 7
mov word [rsp + 0x638], bx
mov dword [rsp + 0x658], 1
mov dword [rsp + 0x65c], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x610]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Listen_for_incoming_connection
call fcn.14001dd30
nop
lea rcx, [rsp + 0x610]
call fcn.14001d880
mov edx, 0x7fffffff
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14002c55e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x570], r14
mov qword [rsp + 0x588], rbx
mov qword [rsp + 0x590], 7
mov word [rsp + 0x578], bx
mov qword [rsp + 0x5a8], rbx
mov qword [rsp + 0x5b0], 7
mov word [rsp + 0x598], bx
mov dword [rsp + 0x5b8], 1
mov dword [rsp + 0x5bc], 3
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x570]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Listen_failed_with_error:
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.14001dc30
nop
lea rcx, [rsp + 0x570]
call fcn.14001d880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdi + 8], ecx
cmp ecx, 1
jne 0x14002bb74
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rcx, rdi
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002bb74
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
mov eax, esi
jmp 0x14002c646
mov qword [rsp + 0x5c0], r14
mov qword [rsp + 0x5d8], rbx
mov qword [rsp + 0x5e0], 7
mov word [rsp + 0x5c8], bx
mov qword [rsp + 0x5f8], rbx
mov qword [rsp + 0x600], 7
mov word [rsp + 0x5e8], bx
mov dword [rsp + 0x608], 1
mov dword [rsp + 0x60c], 1
lea rdx, [0x1400923d4]
lea rcx, [rsp + 0x5c0]
call fcn.14001dd30
mov dword [rax + 0x48], ebx
mov rdx, rsi
mov rcx, rax
call fcn.140026680
mov dword [rax + 0x48], 1
lea rdx, [0x1400923d8]
mov rcx, rax
call fcn.14001dd30
mov rcx, rax
lea rdx, str.Socket_server_initialization_succeded
call fcn.14001dd30
nop
lea rcx, [rsp + 0x5c0]
call fcn.14001d880
nop
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002c644
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140088938]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002c644
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140088938]
xor eax, eax
mov rcx, qword [rsp + 0x7b0]
xor rcx, rsp
call fcn.1400570a0
lea r11, [rsp + 0x7c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, str.SocketHeciServer::SocketServer::InitializeInternal
lea rcx, [rsp + 0x190]
call fcn.1400239a0
nop
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x610]
call fcn.14001cf70
nop
mov rcx, rax
call fcn.140032900
mov rdx, rax
lea rcx, [rsp + 0x690]
call fcn.14001d000
lea rdx, [0x1400a0bb0]
lea rcx, [rsp + 0x690]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.SocketHeciServer::SocketServer::InitializeInternal
lea rcx, [rsp + 0x670]
call fcn.1400239a0
nop
lea rdx, [rsp + 0x670]
lea rcx, [rsp + 0x750]
call fcn.14001cf70
nop
mov rcx, rax
call fcn.140032900
mov rdx, rax
lea rcx, [rsp + 0x6f0]
call fcn.14001d000
lea rdx, [0x1400a0bb0]
lea rcx, [rsp + 0x6f0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3