Function at 0x140044d10
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [0x1401288c0], 0
mov r14, qword [rcx + 0x20]
mov r15d, r8d
mov r10, qword [r14 + 0x100]
movsxd r13, edx
mov r12, rcx
lea r9, [0x1401288c0]
je 0x140044d84
test r10, r10
je 0x140044d7a
mov r8, qword [r9]
mov rax, r10
sub r8, r10
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140044d76
add rax, 1
test ecx, ecx
jne 0x140044d62
test edx, edx
je 0x140044ded
add r9, 8
cmp qword [r9], 0
jne 0x140044d54
xor eax, eax
neg eax
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
sbb esi, esi
mov rcx, r13
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
add esi, 2
xor edi, edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x2c]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140044df4
call fcn.14009f140
mov ecx, dword [rax]
call fcn.1400a2660
lea r8, str.add_socket:__s
xor edx, edx
mov r9, rax
mov ecx, esi
call fcn.1400488b0
jmp 0x140045021
mov eax, 1
jmp 0x140044d86
test r15d, r15d
je 0x140044e83
mov rcx, qword [r14]
call qword [0x1401287e0]
test rax, rax
mov rdi, rax
jne 0x140044e3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a2660
lea r8, str.add_socket:_SSL_new:__s
xor edx, edx
mov r9, rax
mov ecx, esi
call fcn.1400488b0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140045021
mov edx, r13d
mov rcx, rax
call qword [0x1401287c8]
test eax, eax
jne 0x140044e83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a2660
lea r8, str.add_socket:_SSL_set_fd:__s
xor edx, edx
mov r9, rax
mov ecx, esi
call fcn.1400488b0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [0x140128738]
jmp 0x140045021
mov edx, 0x8240
mov ecx, 1
mov qword [rsp + 0xa0], rbx
call fcn.1400a24a0
test rax, rax
mov rbx, rax
jne 0x140044ede
test rdi, rdi
je 0x140044eb0
mov rcx, rdi
call qword [0x140128738]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a2660
lea r8, str.add_socket:_calloc:__s
xor edx, edx
mov r9, rax
mov ecx, esi
call fcn.1400488b0
jmp 0x140045019
mov qword [rax + 0x168], rax
mov qword [rax + 0x1d0], rax
mov qword [rax + 0x18], r14
mov qword [rax + 0x10], r12
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x28]
mov eax, dword [rcx]
lea rdx, [rsp + 0x2c]
mov dword [rbx + 0x20], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 0x24], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 0x28], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0x2c], eax
mov eax, dword [rcx + 0x10]
mov rcx, r13
mov dword [rbx + 0x30], eax
mov rax, qword [0x14013d5b0]
mov qword [rbx + 0x38], rax
mov rax, qword [0x14013d5b0]
add rax, 0xe10
mov qword [rbx + 0x40], rax
call qword [sym.imp.WS2_32.dll_getsockname]
movzx r11d, word [rsp + 0x2e]
lea rax, str.socket
mov dword [rbx + 0x48], r11d
mov qword [rbx + 0x1b8], 0
mov qword [rbx + 0x220], rax
lea rax, [rbx + 0x240]
mov dword [rbx + 0x1d8], r13d
mov qword [rbx + 0x190], rax
add rax, 0x4000
test r15d, r15d
mov qword [rbx + 0x200], 0x4000
mov qword [rbx + 0x198], 0x4000
mov qword [rbx + 0x1f8], rax
je 0x140044ff8
lea rax, [0x1400ee908]
mov rcx, rdi
mov dword [rbx + 0x1d8], r13d
mov qword [rbx + 0x220], rax
mov qword [rbx + 0x1e0], rdi
call qword [0x140128750]
cmp eax, 1
jne 0x140044fd8
or dword [rbx + 0x230], 2
jmp 0x140044ff8
mov rcx, qword [rbx + 0x1e0]
mov edx, eax
call qword [0x1401287b0]
cmp eax, 2
je 0x140044ff8
cmp eax, 3
je 0x140044ff8
or dword [rbx + 0x230], 0x10
mov rax, qword [r12 + 0x28]
lea rcx, [r12 + 0x28]
mov qword [rax + 8], rbx
mov rax, qword [rcx]
mov qword [rbx + 8], rcx
mov qword [rbx], rax
add dword [r12 + 0x10], 1
mov qword [rcx], rbx
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret