Function at 0x140049ac0
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 0x140049cc0
mov rcx, rsi
call sym.strlen
mov r12, rax
cmp rax, 1
jbe 0x140049cc0
movzx r13d, byte [rsi]
cmp r13b, 0x5b
je 0x14004a060
mov edx, 0x3a
mov rcx, rsi
call sym.strchr
mov rdi, rax
cmp r13b, 0x3a
je 0x140049cb0
test rax, rax
je 0x14004a0d0
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 0x140049c18
mov rcx, rdi
mov edx, 0x3a
call sym.strchr
mov rdi, rax
test rax, rax
je 0x140049c18
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 0x140049c1e
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 0x140049c1e
xor r15d, r15d
xor r14d, r14d
test r12, r12
je 0x140049cc6
cmp r12, 0x31
ja 0x140049f2d
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 0x140049f2d
cmp eax, 2
je 0x14004a410
test eax, eax
jne 0x140049cc6
mov byte [rsp + 0x4f], 1
mov rsi, rdi
jmp 0x140049d2f
test rax, rax
jne 0x14004a2a8
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 0x140049f00
movzx ecx, word [rsp + 0x140]
lea rsi, [rsp + 0x2c0]
cmp cx, 0x17
je 0x140049fd0
lea rdx, [rsp + 0x144]
mov r9d, 0x401
mov r8, rsi
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x140049f2d
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 0x14004a050
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14004a030
mov r13, qword [rdx]
mov rcx, rbx
call sym.Curl_resolv_unlock
test r13, r13
je 0x14004a030
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 0x14004a090
test byte [rbx + 0xa37], 0x10
je 0x140049e02
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140049dc3
mov eax, dword [rax + 8]
test eax, eax
jle 0x140049e02
mov rax, qword [0x140129ed0]
mov eax, dword [rax + 8]
test eax, eax
jle 0x140049e02
mov rax, qword [rbx + 0x20]
lea r8, [0x14010606d]
test rax, rax
je 0x140049df3
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 0x14004a015
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 0x14004a0e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2741
jne 0x140049ff8
cmp byte [rsp + 0x4f], 0
je 0x140049ff8
test byte [rbx + 0xa37], 0x10
je 0x140049ecc
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140049e9f
mov eax, dword [rax + 8]
test eax, eax
jle 0x140049ecc
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 0x140049f00
mov byte [rsp + 0x4f], 0
mov esi, r14d
jmp 0x140049e39
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 0x140049f70
test byte [rbx + 0xa37], 0x10
je 0x140049f70
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140049f5d
mov ecx, dword [rdx + 8]
test ecx, ecx
jle 0x140049f70
mov rdx, qword [0x140129ed0]
mov edx, dword [rdx + 8]
test edx, edx
jg 0x140049fa8
nop dword [rax + rax]
mov byte [rsi + 0x76e], 0
mov r8, qword [rsp + 0x70]
cmp r8, 0xffffffffffffffff
je 0x140049f8d
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 0x140049f70
lea rdx, [rsp + 0x148]
mov r9d, 0x401
mov r8, rsi
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_inet_ntop]
jmp 0x140049d21
cmp eax, 0x2740
je 0x14004a008
cmp eax, 0xd
jne 0x14004a3d8
add esi, 1
cmp r15w, si
jae 0x140049e39
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rbx
call sym.Curl_failf
jmp 0x140049f2d
mov r8, rsi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rbx
call sym.Curl_failf
jmp 0x140049f2d
mov rdx, rdi
mov rcx, rbx
call sym.Curl_resolver_wait_resolv
jmp 0x140049d53
add rsi, 1
mov edx, 0x5d
mov rcx, rsi
call sym.strchr
mov rdi, rax
test rax, rax
je 0x140049cc0
mov r12, rax
sub r12, rsi
jmp 0x140049bb2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13, qword [r13 + 0x28]
test r13, r13
jne 0x140049d7f
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 0x140049f2d
xor r15d, r15d
xor r14d, r14d
jmp 0x140049c27
cmp r15w, si
jb 0x14004a015
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 0x140049f00
test byte [rbx + 0xa37], 0x10
je 0x14004a16d
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x14004a12b
mov r12d, dword [rax + 8]
test r12d, r12d
jle 0x14004a16d
mov rax, qword [0x140129ed0]
mov esi, dword [rax + 8]
test esi, esi
jle 0x14004a16d
mov rax, qword [rbx + 0x20]
lea r8, [0x14010606d]
test rax, rax
je 0x14004a15b
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 0x14004a2b2
test byte [rbx + 0xa37], 0x10
je 0x14004a1e9
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x14004a1a5
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x14004a1e9
mov rax, qword [0x140129ed0]
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x14004a1e9
mov rax, qword [rbx + 0x20]
lea r8, [0x14010606d]
test rax, rax
je 0x14004a1d7
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 0x14004a21b
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 0x140049f32
cmp dword [rsp + 0x728], 2
mov qword [rsp + 0x70], 0xffffffffffffffff
je 0x14004a358
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 0x14004a281
test r15b, r15b
jne 0x14004a300
cmp r14d, 1
je 0x14004a300
cmp ax, 2
je 0x14004a2d0
cmp ax, 0x17
je 0x14004a2d0
add r14d, 1
test r14d, r14d
sete r15b
test dl, 2
je 0x14004a27c
jmp 0x14004a281
xor r12d, r12d
xor esi, esi
jmp 0x140049bc7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x1c0]
mov r8d, 0x100
mov ecx, eax
jmp 0x14004a0b3
movzx ecx, word [rsp + 0x142]
call r13
test r15b, r15b
jne 0x14004a41a
movzx eax, word [rsp + 0x140]
movzx edx, byte [rbp + 0x3a2]
add r14d, 1
jmp 0x14004a270
cmp ax, 2
jne 0x14004a358
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 0x14004a348
jmp 0x14004a487
mov byte [rcx], dl
movzx edx, byte [r12 + 1]
add r12, 1
add rcx, 1
test dl, dl
je 0x14004a487
cmp dl, 0x2e
jne 0x14004a330
mov byte [rcx], 0x2c
jmp 0x14004a332
mov esi, 2
mov dword [rbp + 0x760], esi
mov rsi, qword [rbx + 0x20]
movzx eax, byte [rsi + 0x76e]
cmp al, 0x1c
je 0x14004a3c8
test byte [rbx + 0xa37], 0x10
je 0x14004a3c8
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x14004a390
mov r9d, dword [rdx + 8]
test r9d, r9d
jle 0x14004a3c8
mov rdx, qword [0x140129ed0]
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x14004a3c8
lea rdx, str.STOP
lea r9, [0x1401065a1]
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 0x140049f77
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 0x140049f2d
mov byte [rsp + 0x4f], 1
jmp 0x140049d2f
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 0x14004a35d
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 0x140049f32
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, [0x140106578]
mov esi, 1
call sym.Curl_pp_sendf
mov r12d, eax
test eax, eax
je 0x14004a35d
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 0x140049f32