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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x8930]
cmp dword [rax + 0x18], 0
je 0x18012ddc9
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.18012c120
mov edx, 1
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.18012e150
cmp dword [rcx + 0x3e8], 0
je 0x18012dde1
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x18012e8e0
cmp dword [rcx + 0x434], 0
je 0x18012de84
mov r8, qword [rbx + 0x560]
test r8, r8
jne 0x18012de3c
mov r8, qword [rcx + 0x498]
test r8, r8
jne 0x18012de1f
cmp dword [rcx + 0x3e4], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x4e0]
lea rdx, str.PRET__s
call fcn.18013b4d0
test eax, eax
je 0x18012de72
add rsp, 0x20
pop rbx
ret
cmp dword [rcx + 0x414], 0
lea rcx, [rbx + 0x4e0]
je 0x18012de62
lea rdx, str.PRET_STOR__s
call fcn.18013b4d0
test eax, eax
je 0x18012de72
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18013b4d0
test eax, eax
jne 0x18012de91
mov edx, Ordinal_30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012e840
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x900]
sub rsp, 0xa00
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
mov rbx, qword [rcx]
mov edi, edx
mov rsi, rcx
mov qword [rsp + 0x40], rbx
mov r14, 0xffffffffffffffff
lea rcx, [rbp - 0x20]
xor edx, edx
mov qword [rsp + 0x38], r14
mov r8d, 0x100
call fcn.180154c10
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rbx + 0x4c0]
mov r12d, eax
mov qword [rsp + 0x50], rax
movzx r13d, ax
mov word [rsp + 0x30], ax
mov r15d, eax
mov rcx, qword [rcx + 0x4c0]
mov dword [rsp + 0x48], 1
test rcx, rcx
je 0x18012eaf9
mov rax, r14
inc rax
cmp byte [rcx + rax], r12b
jne 0x18012e977
cmp rax, 1
jbe 0x18012eaf9
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rbx + rax], r12b
jne 0x18012e990
cmp rax, 0x16
jae 0x18012e9a7
mov r14d, reloc.WS2_32.dll_shutdown
jmp 0x18012e9b0
inc r14
cmp byte [rbx + r14], r12b
jne 0x18012e9a7
lea rcx, [r14 + 1]
mov edx, 1
call qword [fcn.1801649f0]
mov r15, rax
test rax, rax
jne 0x18012e9d0
lea eax, [r15 + 0x1b]
jmp 0x18012f011
cmp byte [rbx], 0x3a
jne 0x18012e9da
mov r14, rbx
jmp 0x18012ea00
mov edx, Ordinal_60
mov rcx, rbx
call fcn.18015439c
mov r14, rax
mov rcx, r15
test rax, rax
je 0x18012ea68
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.18016b330
test r14, r14
je 0x18012ea7e
mov edx, Ordinal_60
mov rcx, r14
call fcn.18015439c
mov rbx, rax
test rax, rax
je 0x18012ea7e
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18016ac28
mov ecx, eax
call fcn.1801218d0
mov edx, Ordinal_46
mov rcx, rbx
movzx r14d, ax
call fcn.18015439c
test rax, rax
je 0x18012ea62
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18016ac28
mov ecx, eax
call fcn.1801218d0
movzx r13d, ax
jmp 0x18012ea82
movzx r13d, r14w
jmp 0x18012ea82
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18012ea70
movzx r14d, r12w
xor eax, eax
cmp r14w, r13w
mov ebx, eax
cmovbe ax, r14w
cmovbe bx, r13w
movzx r14d, ax
mov word [rsp + 0x30], ax
cmp byte [r15], r12b
je 0x18012eaef
mov rax, qword [rsi + 0x58]
lea r9, [rbp + 0xe0]
mov edx, dword [rsi + 0x90]
mov r8, r15
mov dword [rsp + 0x20], 0x401
mov ecx, dword [rax + 4]
call sym.WebKeyAPICPPDLLx64.dll_public_virtual:_enum_WKProxyConfig::RequestType___cdecl_WKProxyIDStartRequestExecutor::getRequestType_void____ptr64
test eax, eax
je 0x18012eae1
sub eax, 1
je 0x18012f00c
cmp eax, 1
jne 0x18012eae4
lea r12, [rbp + 0xe0]
jmp 0x18012eae4
mov r12, r15
movzx r13d, bx
test r12, r12
jne 0x18012eb66
jmp 0x18012eaf9
mov word [rsp + 0x30], r14w
movzx r13d, bx
mov rcx, qword [rsi + 0x190]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18012eb3b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, word [rsp + 0x60]
lea r8, [rbp + 0xe0]
mov r9d, 0x401
lea rdx, [rsp + 0x64]
call fcn.180125630
lea r12, [rbp + 0xe0]
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call fcn.180111790
cmp eax, 1
jne 0x18012eb8b
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.180110f90
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x18012efea
mov rcx, qword [rsp + 0x40]
mov r14, qword [rdx]
call fcn.180111980
test r14, r14
je 0x18012efea
test r15, r15
je 0x18012ebbd
mov rcx, r15
call qword [fcn.18015d8ec]
xor ebx, ebx
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.180119780
mov r15d, eax
test eax, eax
je 0x18012ebed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
mov ebx, eax
test r14, r14
jne 0x18012ebc0
jmp 0x18012ebf2
test r14, r14
jne 0x18012ec15
mov edx, ebx
mov rcx, rsi
call fcn.180124a70
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.180118930
jmp 0x18012f00c
movsxd r8, dword [r14 + 0x10]
lea rcx, [rsp + 0x60]
mov rdx, qword [r14 + 0x20]
call fcn.1801547b0
movzx r12d, word [rsp + 0x30]
mov eax, dword [r14 + 0x10]
movzx ebx, r12w
mov dword [rsp + 0x34], eax
cmp r12w, r13w
ja 0x18012ecf5
cmp word [rsp + 0x60], 2
jne 0x18012ec59
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x18012ed80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [rsp + 0x48], 0
je 0x18012ecdc
cmp eax, 0x2741
jne 0x18012ecdc
mov edx, eax
mov rcx, rsi
call fcn.180124a70
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rbx, qword [rsp + 0x40]
mov r9, rax
mov rcx, rbx
call fcn.180118a00
mov rcx, qword [rsi + 0x190]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18012ed18
movzx ebx, r12w
mov dword [rsp + 0x48], eax
jmp 0x18012eceb
cmp eax, 0x2740
je 0x18012ece8
cmp eax, 0xd
jne 0x18012ed4c
inc bx
cmp bx, r13w
jbe 0x18012ec43
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.180118930
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1801190b0
jmp 0x18012f00c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
call fcn.180124a70
mov rcx, rbx
mov edx, eax
mov rcx, rsi
call fcn.180124a70
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, bx
call fcn.180118930
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1801190b0
jmp 0x18012f00c
cmp bx, r13w
ja 0x18012ecf5
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x34], pe_nt_image_headers64
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s