Function at 0x180119ab0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, qword [rcx]
mov r12, rcx
mov dword [rsp + 0x30], r8d
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x40], rdx
xor r13d, r13d
mov qword [rsp + 0x38], r13
xor edx, edx
movzx edi, word [r14 + 0x1c0]
mov r8d, 0x100
mov r15d, dword [r14 + 0x1c4]
mov rsi, qword [r14 + 0x4a0]
call fcn.180154c10
test rsi, rsi
jne 0x180119b2c
test di, di
jne 0x180119b2c
xor eax, eax
jmp 0x180119eb3
xor edx, edx
mov qword [rsp + 0x2b8], rbx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.180154c10
test rsi, rsi
je 0x180119d65
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rsi + rax], r13b
jne 0x180119b60
cmp rax, 0xff
jae 0x180119d65
mov rcx, qword [case.0x180110b34.2]
mov r8, rbx
nop
inc r8
cmp byte [rcx + r8], r13b
jne 0x180119b80
mov rdx, rsi
call fcn.18016a500
test eax, eax
jne 0x180119bb6
mov rax, qword [case.0x180110b34.2]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x180119ba0
add rsi, rbx
mov ebx, 1
jmp 0x180119cc0
mov rcx, qword [str.host_]
mov r8, rbx
inc r8
cmp byte [rcx + r8], r13b
jne 0x180119bc0
mov rdx, rsi
call fcn.18016a500
test eax, eax
jne 0x180119cbd
mov rax, qword [str.host_]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x180119be0
add rsi, rbx
cmp dword [rsp + 0x30], 2
mov ebx, dword [r12 + 0x2c8]
jne 0x180119c07
mov dword [r12 + 0x2c8], 1
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.180111790
cmp eax, 1
jne 0x180119c2c
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.180110f90
mov rcx, qword [rsp + 0x38]
mov dword [r12 + 0x2c8], ebx
test rcx, rcx
je 0x180119cf8
mov rcx, qword [rcx]
lea rdx, [rbp + 0x50]
mov r8d, 0x100
call fcn.180111760
mov rax, qword [rsp + 0x38]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r9d, dword [rsp + 0x30]
mov r8, rsi
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, r14
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.180118a00
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.180111980
cmp dword [rsp + 0x30], 2
jne 0x180119d8a
mov ebx, 2
lea r8, [rsp + 0x54]
mov ecx, ebx
lea rdx, [rbp + 0x50]
call fcn.180125480
test eax, eax
jle 0x180119d8a
jmp 0x180119d71
mov ebx, r13d
mov edx, dword [r12 + 0x90]
lea r9, [rbp + 0x50]
mov ecx, dword [rsp + 0x30]
mov r8, rsi
mov dword [rsp + 0x20], 0x100
call sym.WebKeyAPICPPDLLx64.dll_public_virtual:_enum_WKProxyConfig::RequestType___cdecl_WKProxyIDStartRequestExecutor::getRequestType_void____ptr64
mov ecx, eax
test eax, eax
je 0x180119d41
sub ecx, 1
je 0x180119d37
cmp ecx, 1
je 0x180119d14
test ebx, ebx
je 0x180119bec
mov r8, rsi
lea rdx, str.Couldnt_bind_to__s
mov rcx, r14
call fcn.180118930
mov eax, Ordinal_46
jmp 0x180119eab
mov eax, dword [rsp + 0x30]
lea r9, [rbp + 0x50]
mov r8, rsi
mov dword [rsp + 0x20], eax
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov rcx, r14
call fcn.180118a00
jmp 0x180119c90
mov eax, 1
jmp 0x180119eab
test ebx, ebx
je 0x180119bec
mov r8, rsi
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, r14
call fcn.180118930
mov eax, Ordinal_46
jmp 0x180119eab
cmp dword [rsp + 0x30], 2
jne 0x180119d8a
mov ebx, 2
movzx ecx, di
mov word [rsp + 0x50], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r13d, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x180119df1
dec r15d
test r15d, r15d
jle 0x180119e55
movzx r8d, di
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, r14
call fcn.180118a00
inc di
cmp word [rsp + 0x50], 2
jne 0x180119ddc
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x180119da4
xor edx, edx
mov dword [rsp + 0x34], pe_nt_image_headers64
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x30]
call fcn.180154c10
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x180119e8a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [r14 + 0x87d4], eax
mov rcx, r12
mov ebx, eax
call fcn.180124a70
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.180118930
mov eax, Ordinal_46
jmp 0x180119eab
movzx r8d, di
lea rdx, str.Local_port:__hu_n
mov rcx, r14
call fcn.180118a00
xor eax, eax
mov dword [r12 + 0x29c], 1