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

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0x58], rcx
mov dword [rbp + 0x84], 1
mov dword [rbp + 0x3c], 0
mov dword [rbp + 0x38], 0
cmp qword [rbp + 0x58], 0
jne 0x42a207
mov dword [rbp + 0x64], 0
jmp 0x42a8d5
lea rcx, [rbp + 0x98]
xor edx, edx
mov r8d, 0x30
call fcn.0041ba90
lea rcx, [rbp + 0x88]
xor edx, edx
mov r8d, 0x10
call fcn.0041ba90
mov dword [rbp + 0x6c], 0x10
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0x7da0]
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x70]
xor eax, eax
mov r8d, eax
call fcn.0042c3c0
mov qword [rbp + 0x50], rax
cmp rax, 0
je 0x42a8b3
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0x98]
lea r8, [rbp + 0x68]
call fcn.00434ff0
cmp eax, 0
jne 0x42a2dc
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x78]
mov ecx, eax
mov r8, qword [rbp + 0x70]
mov r9d, dword [rbp + 0x3c]
lea r10, str._IP_ADDRESS:_PORT_sr_
mov rax, rsp
mov qword [rax + 0x40], r10
mov dword [rax + 0x38], r9d
mov qword [rax + 0x30], r8
mov dword [rax + 0x28], ecx
lea rcx, str._.s:_invalid_port_spec__entry__i_._Expecting_list_of:__s
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3ea4
call fcn.0041e440
jmp 0x42a245
movzx ecx, word [rbp + 0xa0]
mov edx, dword [rbp + 0x68]
mov r8d, 6
xor eax, eax
cmp edx, 0x63
cmove r8d, eax
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x42a344
mov rdx, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x3c]
mov rax, rsp
mov dword [rax + 0x28], ecx
lea rcx, str.cannot_create_socket__entry__i_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3ebd
call fcn.0041e440
jmp 0x42a245
mov rcx, qword [rbp + 0x98]
mov edx, 0xffff
mov r8d, 0xfffffffb
lea r9, [rbp + 0x84]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0
je 0x42a3a2
mov rdx, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x3c]
mov rax, rsp
mov dword [rax + 0x28], ecx
lea rcx, str.cannot_set_socket_option_SO_EXCLUSIVEADDRUSE__entry__i_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3ed6
call fcn.0041e440
cmp dword [rbp + 0x68], 4
jle 0x42a3fc
mov rdx, qword [rbp + 0x58]
lea rcx, str.IPv6_not_available
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x00447292]
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f11
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
movzx eax, word [rbp + 0xa0]
cmp eax, 2
jne 0x42a4e2
mov dword [rbp + 0x6c], 0x10
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x98]
add rdx, 8
mov r8d, dword [rbp + 0x6c]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0
je 0x42a4dd
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x78]
mov dword [rbp + 0x1c], eax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov r9d, dword [rbp + 0xc]
mov r8, qword [rbp + 0x10]
mov ecx, dword [rbp + 0x1c]
mov rdx, qword [rbp + 0x20]
mov r10, rax
mov rax, rsp
mov qword [rax + 0x40], r10
mov dword [rax + 0x38], r9d
mov qword [rax + 0x30], r8
mov dword [rax + 0x28], ecx
lea rcx, str.cannot_bind_to__.s:__d___s_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f21
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
cmp byte [rbp + 0xc2], 0
je 0x42a4d8
mov eax, dword [rbp + 0x38]
add eax, 1
mov dword [rbp + 0x38], eax
jmp 0x42a245
jmp 0x42a52d
mov rdx, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x3c]
mov rax, rsp
mov dword [rax + 0x28], ecx
lea rcx, str.cannot_bind:_address_family_not_supported__entry__i_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f58
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0x7de0]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x30]
xor eax, eax
mov edx, eax
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0x7fffffff
jg 0x42a569
cmp dword [rbp + 0x2c], 1
jge 0x42a5c1
mov rdx, qword [rbp + 0x58]
mov rcx, qword [str.listen_backlog]
mov r8, qword [rbp + 0x30]
mov rax, rsp
mov qword [rax + 0x30], r8
mov qword [rax + 0x28], rcx
lea rcx, str._s_value___s__is_invalid
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f64
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x2c]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0
je 0x42a669
mov rax, qword [rbp + 0x58]
mov qword [rbp], rax
mov rax, qword [rbp + 0x78]
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x14], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov r9d, dword [rbp - 0x14]
mov r8, qword [rbp - 0x10]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp]
mov r10, rax
mov rax, rsp
mov qword [rax + 0x40], r10
mov dword [rax + 0x38], r9d
mov qword [rax + 0x30], r8
mov dword [rax + 0x28], ecx
lea rcx, str.cannot_listen_to__.s:__d___s_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f71
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x88]
lea r8, [rbp + 0x6c]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0
jne 0x42a6a0
movzx eax, word [rbp + 0x88]
movzx ecx, word [rbp + 0xa0]
cmp eax, ecx
je 0x42a735
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x78]
mov dword [rbp - 0x24], eax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 0x28]
mov dword [rbp - 0x34], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov r9d, dword [rbp - 0x34]
mov r8, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x20]
mov r10, rax
mov rax, rsp
mov qword [rax + 0x40], r10
mov dword [rax + 0x38], r9d
mov qword [rax + 0x30], r8
mov dword [rax + 0x28], ecx
lea rcx, str.call_to_getsockname_failed__.s:__d___s_
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f80
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
mov ax, word [rbp + 0x8a]
mov word [rbp + 0xa2], ax
mov rax, qword [rbp + 0x58]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x18]
add eax, 1
mov eax, eax
imul rdx, rax, 0x30
call fcn.004321c0
mov qword [rbp + 0x48], rax
cmp rax, 0
jne 0x42a7be
mov rdx, qword [rbp + 0x58]
lea rcx, str.Out_of_memory
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x00447292]
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3f97
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x42a245
mov rax, qword [rbp + 0x58]
mov rcx, qword [rax + 0x10]
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x18]
add eax, 2
mov eax, eax
mov edx, eax
shl rdx, 4
call fcn.004321c0
mov qword [rbp + 0x40], rax
cmp rax, 0
jne 0x42a844
mov rdx, qword [rbp + 0x58]
lea rcx, str.Out_of_memory
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x00447292]
mov qword [rax + 0x20], rcx
lea r8, str.set_ports_option
xor eax, eax
mov ecx, eax
mov r9d, 0x3fa9
call fcn.0041e440
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
mov rcx, qword [rbp + 0x48]
call fcn.0041d370
jmp 0x42a245
mov rcx, qword [rbp + 0x98]
mov r8, qword [rbp + 0x58]
xor eax, eax
mov edx, eax
call fcn.004335f0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x58]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x18]
imul rax, rax, 0x30
add rcx, rax
lea rdx, [rbp + 0x98]
mov r8d, 0x30
call fcn.0041bba0
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x18]
add ecx, 1
mov dword [rax + 0x18], ecx
mov eax, dword [rbp + 0x38]
add eax, 1
mov dword [rbp + 0x38], eax
jmp 0x42a245
mov eax, dword [rbp + 0x38]
cmp eax, dword [rbp + 0x3c]
je 0x42a8cf
mov rcx, qword [rbp + 0x58]
call fcn.00435490
mov dword [rbp + 0x38], 0
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
mov dword [rbp - 0x38], eax
mov rcx, qword [rbp + 0xc8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x42a8fd
jmp 0x42a902
call fcn.0041bf30
mov eax, dword [rbp - 0x38]
add rsp, 0x150
pop rbp
ret