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

Disassembly:
mov r11, rsp
sub rsp, 0xa18
mov rax, qword [0x005c3458]
mov qword [rsp + COlePasteSpecialDialog::DoModal], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
mov r13, qword [rcx]
mov qword [r11 - 0x28], r14
mov rbp, rcx
mov ebx, edx
lea rcx, [r11 - 0x957]
xor r14d, r14d
mov r8d, 0xff
xor edx, edx
mov qword [r11 - 0x30], r15
mov byte [r11 - 0x958], r14b
call sub.msvcrt.dll_memset
mov rsi, qword [r13 + 0x418]
mov qword [rsp + 0x38], r14
mov rdi, qword [r13 + 0x418]
xor r15w, r15w
test rdi, rdi
mov word [rsp + 0x34], r14w
mov r12, r14
je 0x4a4759
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x4a4759
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
mov eax, socket
not rcx
lea edx, [rax - 0x15]
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [case.0x49474c.2]
test rax, rax
mov r12, rax
jne 0x4a465e
lea eax, [r14 + 0x1b]
jmp 0x4a4c13
cmp byte [rsi], 0x3a
jne 0x4a470b
mov rdi, rsi
test rdi, rdi
je 0x4a46d4
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x4a46d4
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtol]
mov edx, 0x2d
mov rcx, rdi
mov esi, eax
mov dword [rsp + 0x34], eax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x4a4750
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtol]
cmp si, ax
mov r15d, eax
jbe 0x4a46d4
xor r15w, r15w
mov word [rsp + 0x34], r14w
cmp byte [r12], r14b
je 0x4a4759
mov rax, qword [rbp + 0x50]
lea r8, [rsp + 0x1c0]
mov r9d, 0x401
mov ecx, dword [rax + 4]
mov rdx, r12
call fcn.004b61f0
lea rdx, [rsp + 0x1c0]
test rax, rax
cmove rdx, r12
jmp 0x4a47df
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x4a4738
mov r8, rax
mov rdx, rsi
mov rcx, r12
sub r8, rsi
call qword [sym.imp.msvcrt.dll_strncpy]
jmp 0x4a466a
mov rcx, r12
sub rcx, rsi
nop
movzx eax, byte [rsi]
inc rsi
test al, al
mov byte [rcx + rsi - 1], al
jne 0x4a4740
jmp 0x4a46d4
mov r15w, si
jmp 0x4a46d4
mov rcx, qword [rbp + 0x118]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a47ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0048a2b0
lea rdx, str.getsockname___failed:__s
mov rcx, r13
mov r8, rax
call fcn.00496db0
test r12, r12
je 0x4a4a85
mov rcx, r12
call qword [sub.msvcrt.dll_free]
mov eax, 0x1e
jmp 0x4a4c13
movzx ecx, word [rsp + 0x40]
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x44]
mov r9d, 0x401
call fcn.00498720
lea rdx, [rsp + 0x1c0]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, rbp
call fcn.0048c030
cmp eax, 1
jne 0x4a4801
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.0049a470
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x4a4818
mov rdi, qword [rdx]
mov rcx, r13
call fcn.0048c260
jmp 0x4a481b
mov rdi, r14
test r12, r12
je 0x4a4829
mov rcx, r12
call qword [sub.msvcrt.dll_free]
test rdi, rdi
jne 0x4a4845
lea rdx, str.Curl_resolv_failed__we_can_not_recover_
mov rcx, r13
call fcn.00496db0
lea eax, [rdi + 0x1e]
jmp 0x4a4c13
cmp dword [rdi + 8], r14d
jne 0x4a4854
mov eax, dword [rbp + 0x8c]
mov dword [rdi + 8], eax
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x4a48a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x4a4845
mov edx, eax
mov rcx, rbp
call fcn.0048a2b0
lea rdx, str.socket_failure:__s
mov rcx, r13
mov r8, rax
call fcn.00496db0
lea eax, [rdi + 0x1e]
jmp 0x4a4c13
movsxd r8, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x34]
mov edx, dword [rdi + 0x10]
cmp ax, r15w
mov dword [rsp + 0x30], edx
movzx esi, ax
ja 0x4a49eb
nop
nop
cmp word [rsp + 0x40], 2
jne 0x4a48e6
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a49e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2741
jne 0x4a4958
mov edx, eax
mov rcx, rbp
call fcn.0048a2b0
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r13
call fcn.00496db0
mov rcx, qword [rbp + 0x118]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a4993
mov si, word [rsp + 0x34]
jmp 0x4a4967
cmp eax, 0x2740
je 0x4a4964
cmp eax, 0xd
jne 0x4a49b2
inc si
cmp si, r15w
jbe 0x4a48d0
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r13
call fcn.00496db0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x4a4c13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0048a2b0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x4a4a74
mov edx, eax
mov rcx, rbp
call fcn.0048a2b0
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r13
call fcn.00496db0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x4a4c13
cmp si, r15w
jbe 0x4a4a0d
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r13
call fcn.00496db0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x4a4c13
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a4a48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0048a2b0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x4a4a74
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4a4a8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0048a2b0
lea rdx, str.socket_failure:__s
mov r8, rax
mov rcx, r13
call fcn.00496db0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x4a4c13
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov rcx, rdi
call fcn.0048bd70
cmp ebx, 2
je 0x4a4bd8
movzx eax, word [rsp + 0x40]
cmp byte [rbp + 0x1b1], r14b
jne 0x4a4ac0
test ebx, ebx
je 0x4a4aee
cmp ebx, 1
jne 0x4a4acb
cmp ax, 2
jne 0x4a4aee
cmp ax, 2
jne 0x4a4aee
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
test ebx, ebx
movzx r11d, ax
je 0x4a4b01
cmp ebx, 1
je 0x4a4b51
mov ax, word [rsp + 0x40]
inc ebx
cmp ebx, 2
jne 0x4a4ab3
lea rdi, [rbp + 0x3d0]
jmp 0x4a4bdf
cmp word [rsp + 0x40], 2
movzx eax, r11w
lea rdi, [rbp + 0x3d0]
mov dword [rsp + 0x28], eax
setne r14b
lea rax, [rsp + 0xc0]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
lea r9d, [r14 + 1]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.004b6870
test eax, eax
mov r14d, eax
je 0x4a4bdf
jmp 0x4a4c13
lea rdi, [rsp + 0x5d0]
lea rdx, [rsp + 0xc0]
mov r8d, 0x2c
movzx ecx, byte [rdx]
test cl, cl
je 0x4a4b83
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x4a4b67
movzx r9d, r11w
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
mov rcx, rdi
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rdi], r14b
call fcn.0048ae70
lea rdi, [rbp + 0x3d0]
lea r9, [rsp + 0x5d0]
lea r8, str.PORT
lea rdx, str._s__s
mov rcx, rdi
call fcn.004b6870
test eax, eax
mov r14d, eax
je 0x4a4bdf
jmp 0x4a4c13
lea rdi, [rbp + 0x3d0]
mov dword [rdi + 0x9c], ebx
mov rcx, qword [rbp + 0x120]
cmp rcx, 0xffffffffffffffff
je 0x4a4bf8
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x120], r12
mov byte [rbp + 0x1a9], 1
mov eax, r14d
mov dword [rbp + 0x478], 0x1c
mov r15, qword [rsp + 0x9e8]
mov r14, qword [rsp + 0x9f0]
mov r13, qword [rsp + 0x9f8]
mov r12, qword [rsp + 0xa00]
mov rdi, qword [rsp + 0xa08]
mov rsi, qword [rsp + 0xa10]
mov rbp, qword [rsp + 0xa38]
mov rbx, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0x9d0]
call fcn.005555b0
add rsp, 0xa18
ret
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
mov rax, qword [rdx + 0x8810]
cmp dword [rax + 0x18], 0
je 0x4a4d45
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
mov dword [rcx + 0x478], 0xd
add rsp, 0x20
pop rbx
jmp fcn.004a7d70
cmp byte [rdx + 0x38e], 0
je 0x4a4d5a
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x4a4580
cmp byte [rdx + 0x3a6], 0
je 0x4a4dfb
mov r8, qword [rcx + 0x450]
test r8, r8
jne 0x4a4db5
mov r8, qword [rdx + 0x3f0]
test r8, r8
jne 0x4a4d98
cmp byte [rdx + 0x38d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x3d0
call fcn.004b6870
test eax, eax
je 0x4a4deb
add rsp, 0x20
pop rbx
ret
add rcx, 0x3d0
cmp byte [rdx + 0x398], 0
je 0x4a4ddb
lea rdx, str.PRET_STOR__s
call fcn.004b6870
test eax, eax
je 0x4a4deb
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.004b6870
test eax, eax
jne 0x4a4e00
mov dword [rbx + 0x478], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.004a4c70
add rsp, 0x20
pop rbx
ret