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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6d8
mov rsi, qword [rcx + 0x828]
mov rbp, qword [rcx + 0x20]
mov qword [rsp + 0x98], 0
mov rbx, rcx
mov dword [rsp + 0x728], edx
mov qword [rsp + 0x70], 0xffffffffffffffff
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x9f], 0
mov qword [rsp + 0xa7], 0
mov qword [rsp + 0x78], 0
test rsi, rsi
je 0x1400497f0
mov rcx, rsi
call sym.strlen
mov r12, rax
cmp rax, 1
jbe 0x1400497f0
movzx r13d, byte [rsi]
cmp r13b, 0x5b
je 0x140049b90
mov edx, 0x3a
mov rcx, rsi
call sym.strchr
mov rdi, rax
cmp r13b, 0x3a
je 0x1400497e0
test rax, rax
je 0x140049c00
mov r12, rax
lea r8, [rsp + 0x148]
mov rdx, rsi
mov ecx, 0x17
sub r12, rsi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140049748
mov rcx, rdi
mov edx, 0x3a
call sym.strchr
mov rdi, rax
test rax, rax
je 0x140049748
mov r8d, 0xa
xor edx, edx
lea rcx, [rdi + 1]
call sym.strtoul
mov ecx, eax
call sym.curlx_ultous
mov edx, 0x2d
mov rcx, rdi
mov r14d, eax
call sym.strchr
mov r15d, r14d
test rax, rax
je 0x14004974e
lea rcx, [rax + 1]
mov r8d, 0xa
xor edx, edx
call sym.strtoul
mov ecx, eax
call sym.curlx_ultous
mov r15d, eax
cmp ax, r14w
jae 0x14004974e
xor r15d, r15d
xor r14d, r14d
test r12, r12
je 0x1400497f6
cmp r12, 0x31
ja 0x140049a5d
lea rdi, [rsp + 0xb0]
mov r8, r12
mov rdx, rsi
mov rcx, rdi
lea rsi, [rsp + 0x2c0]
call sym.memcpy
mov rax, qword [rbp + 0x38]
mov byte [rsp + r12 + 0xb0], 0
mov r12d, dword [rbp + 0x7a4]
lea rcx, [rax + 0x10]
call sym.Curl_ipv6_scope
mov r9, rdi
mov r8d, r12d
mov edx, eax
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0x401
call sym.Curl_if2ip
cmp eax, 1
je 0x140049a5d
cmp eax, 2
je 0x140049f40
test eax, eax
jne 0x1400497f6
mov byte [rsp + 0x4f], 1
mov rsi, rdi
jmp 0x14004985f
test rax, rax
jne 0x140049dd8
nop dword [rax]
xor r15d, r15d
xor r14d, r14d
mov dword [rsp + 0x6c], pe_nt_image_headers64
mov rcx, qword [rbp + 0x220]
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x140]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140049a30
movzx ecx, word [rsp + 0x140]
lea rsi, [rsp + 0x2c0]
cmp cx, 0x17
je 0x140049b00
lea rdx, [rsp + 0x144]
mov r9d, 0x401
mov r8, rsi
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x140049a5d
mov byte [rsp + 0x4f], 0
lea rdi, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call sym.Curl_resolv
cmp eax, 1
je 0x140049b80
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x140049b60
mov r13, qword [rdx]
mov rcx, rbx
call sym.Curl_resolv_unlock
test r13, r13
je 0x140049b60
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
movzx r9d, byte [rbp + 0x7ae]
mov qword [rsp + 0x20], rax
call sym.Curl_socket_open
test eax, eax
jne 0x140049bc0
test byte [rbx + 0xa37], 0x10
je 0x140049932
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400498f3
mov eax, dword [rax + 8]
test eax, eax
jle 0x140049932
mov rax, qword [0x14011e920]
mov eax, dword [rax + 8]
test eax, eax
jle 0x140049932
mov rax, qword [rbx + 0x20]
lea r8, [0x1400faf4d]
test rax, rax
je 0x140049923
movzx edx, byte [rax + 0x76e]
lea rax, str.STOP
mov r8, qword [rax + rdx*8]
lea rdx, str.__s__ftp_state_use_port____opened_socket
mov rcx, rbx
call sym.Curl_trc_ftp
mov rdx, qword [r13 + 0x20]
movsxd r8, dword [r13 + 0x10]
lea r12, [rsp + 0x140]
mov rcx, r12
call sym.memcpy
mov eax, dword [r13 + 0x10]
mov dword [rsp + 0x6c], eax
cmp r15w, r14w
jb 0x140049b45
lea rax, [rsp + 0x6c]
mov esi, r14d
mov qword [rsp + 0x50], rax
movzx edi, si
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
mov rdx, r12
mov word [rsp + 0x142], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140049c10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2741
jne 0x140049b28
cmp byte [rsp + 0x4f], 0
je 0x140049b28
test byte [rbx + 0xa37], 0x10
je 0x1400499fc
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400499cf
mov eax, dword [rax + 8]
test eax, eax
jle 0x1400499fc
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, 0x2741
call sym.Curl_strerror
mov r8d, edi
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, rbx
mov r9, rax
call sym.Curl_infof
mov dword [rsp + 0x6c], pe_nt_image_headers64
mov rcx, qword [rbp + 0x220]
mov rdx, r12
mov r8, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140049a30
mov byte [rsp + 0x4f], 0
mov esi, r14d
jmp 0x140049969
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.getsockname___failed:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
mov edi, 0x1e
mov rsi, qword [rbx + 0x20]
movzx eax, byte [rsi + 0x76e]
test al, al
je 0x140049aa0
test byte [rbx + 0xa37], 0x10
je 0x140049aa0
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140049a8d
mov ecx, dword [rdx + 8]
test ecx, ecx
jle 0x140049aa0
mov rdx, qword [0x14011e920]
mov edx, dword [rdx + 8]
test edx, edx
jg 0x140049ad8
nop dword [rax + rax]
mov byte [rsi + 0x76e], 0
mov r8, qword [rsp + 0x70]
cmp r8, 0xffffffffffffffff
je 0x140049abd
mov rdx, rbp
mov rcx, rbx
call sym.Curl_socket_close
mov eax, edi
add rsp, 0x6d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.STOP
lea r9, str.STOP
mov rcx, rbx
mov r8, qword [rdx + rax*8]
lea rdx, str.__s_______s_
call sym.Curl_trc_ftp
jmp 0x140049aa0
lea rdx, [rsp + 0x148]
mov r9d, 0x401
mov r8, rsi
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_inet_ntop]
jmp 0x140049851
cmp eax, 0x2740
je 0x140049b38
cmp eax, 0xd
jne 0x140049f08
add esi, 1
cmp r15w, si
jae 0x140049969
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rbx
call sym.Curl_failf
jmp 0x140049a5d
mov r8, rsi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x140049a5d
mov rdx, rdi
mov rcx, rbx
call sym.Curl_resolver_wait_resolv
jmp 0x140049883
add rsi, 1
mov edx, 0x5d
mov rcx, rsi
call sym.strchr
mov rdi, rax
test rax, rax
je 0x1400497f0
mov r12, rax
sub r12, rsi
jmp 0x1400496e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13, qword [r13 + 0x28]
test r13, r13
jne 0x1400498af
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.socket_failure:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x140049a5d
xor r15d, r15d
xor r14d, r14d
jmp 0x140049757
cmp r15w, si
jb 0x140049b45
mov dword [rsp + 0x6c], pe_nt_image_headers64
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x6c]
mov rdx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140049a30
test byte [rbx + 0xa37], 0x10
je 0x140049c9d
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140049c5b
mov r12d, dword [rax + 8]
test r12d, r12d
jle 0x140049c9d
mov rax, qword [0x14011e920]
mov esi, dword [rax + 8]
test esi, esi
jle 0x140049c9d
mov rax, qword [rbx + 0x20]
lea r8, [0x1400faf4d]
test rax, rax
je 0x140049c8b
movzx edx, byte [rax + 0x76e]
lea rax, str.STOP
mov r8, qword [rax + rdx*8]
mov r9d, edi
lea rdx, str.__s__ftp_state_use_port____socket_bound_to_port__d
mov rcx, rbx
call sym.Curl_trc_ftp
mov rcx, qword [rsp + 0x70]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
test eax, eax
jne 0x140049de2
test byte [rbx + 0xa37], 0x10
je 0x140049d19
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140049cd5
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x140049d19
mov rax, qword [0x14011e920]
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x140049d19
mov rax, qword [rbx + 0x20]
lea r8, [0x1400faf4d]
test rax, rax
je 0x140049d07
movzx edx, byte [rax + 0x76e]
lea rax, str.STOP
mov r8, qword [rax + rdx*8]
mov r9d, edi
lea rdx, str.__s__ftp_state_use_port____listening_on__d
mov rcx, rbx
call sym.Curl_trc_ftp
lea r12, [rsp + 0x80]
mov r8d, 0x2f
mov rcx, r13
mov rdx, r12
call sym.Curl_printable_address
mov eax, dword [rbp + 0x3a0]
and eax, 0x21000
cmp eax, 0x1000
jne 0x140049d4b
or byte [rbp + 0x3a2], 2
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov rdx, rbp
mov rcx, rbx
call sym.Curl_conn_tcp_listen_set
mov edi, eax
test eax, eax
jne 0x140049a62
cmp dword [rsp + 0x728], 2
mov qword [rsp + 0x70], 0xffffffffffffffff
je 0x140049e88
movzx eax, word [rsp + 0x140]
movzx edx, byte [rbp + 0x3a2]
mov r13, qword [sym.imp.WS2_32.dll_ntohs]
mov r14d, dword [rsp + 0x728]
test r14d, r14d
sete r15b
test dl, 2
jne 0x140049db1
test r15b, r15b
jne 0x140049e30
cmp r14d, 1
je 0x140049e30
cmp ax, 2
je 0x140049e00
cmp ax, 0x17
je 0x140049e00
add r14d, 1
test r14d, r14d
sete r15b
test dl, 2
je 0x140049dac
jmp 0x140049db1
xor r12d, r12d
xor esi, esi
jmp 0x1400496f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, eax
jmp 0x140049be3
movzx ecx, word [rsp + 0x142]
call r13
test r15b, r15b
jne 0x140049f4a
movzx eax, word [rsp + 0x140]
movzx edx, byte [rbp + 0x3a2]
add r14d, 1
jmp 0x140049da0
cmp ax, 2
jne 0x140049e88
movzx ecx, word [rsp + 0x142]
lea rsi, [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, byte [rsp + 0x80]
mov rcx, rsi
test dl, dl
jne 0x140049e78
jmp 0x140049fb7
mov byte [rcx], dl
movzx edx, byte [r12 + 1]
add r12, 1
add rcx, 1
test dl, dl
je 0x140049fb7
cmp dl, 0x2e
jne 0x140049e60
mov byte [rcx], 0x2c
jmp 0x140049e62
mov esi, 2
mov dword [rbp + 0x760], esi
mov rsi, qword [rbx + 0x20]
movzx eax, byte [rsi + 0x76e]
cmp al, 0x1c
je 0x140049ef8
test byte [rbx + 0xa37], 0x10
je 0x140049ef8
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140049ec0
mov r9d, dword [rdx + 8]
test r9d, r9d
jle 0x140049ef8
mov rdx, qword [0x14011e920]
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x140049ef8
lea rdx, str.STOP
lea r9, [0x1400fb481]
mov rcx, rbx
mov r8, qword [rdx + rax*8]
lea rdx, str.__s_______s_
call sym.Curl_trc_ftp
nop dword [rax]
mov byte [rsi + 0x76e], 0x1c
jmp 0x140049aa7
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
mov r8d, edi
lea rdx, str.bind_port_hu__failed:__s
mov rcx, rbx
mov r9, rax
call sym.Curl_failf
jmp 0x140049a5d
mov byte [rsp + 0x4f], 1
jmp 0x14004985f
xor edx, edx
movzx eax, ax
cmp word [rsp + 0x140], 2
mov qword [rsp + 0x28], r12
setne dl
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0x660]
lea r9, str.EPRT
add edx, 1
lea r8, str._s__d_s_hu
mov dword [rsp + 0x20], edx
mov rdx, rcx
mov rcx, rbx
call sym.Curl_pp_sendf
mov r12d, eax
test eax, eax
je 0x140049e8d
mov ecx, eax
mov edi, r12d
call sym.curl_easy_strerror
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x140049a62
movzx edx, ah
movzx eax, al
mov byte [rcx], 0
lea r8, str.__d__d
mov dword [rsp + 0x20], eax
mov r9d, edx
mov edx, 0x14
call sym.curl_msnprintf
mov qword [rsp + 0x20], rsi
mov rcx, rbx
lea rdx, [rbp + 0x660]
lea r9, str.PORT
lea r8, [0x1400fb458]
mov esi, 1
call sym.Curl_pp_sendf
mov r12d, eax
test eax, eax
je 0x140049e8d
mov ecx, eax
mov edi, r12d
call sym.curl_easy_strerror
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x140049a62