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

Disassembly:
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 [0x140091208]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
mov rdi, qword [rcx]
mov rsi, rcx
mov r12d, edx
lea rcx, [rbp - 0x1f]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rbp - 0x20], 0
call fcn.140054b20
mov rbx, qword [rdi + 0x558]
xor eax, eax
mov qword [rsp + 0x50], rax
mov rdi, qword [rdi + 0x558]
movzx r14d, ax
mov dword [rsp + 0x48], r14d
movzx r15d, ax
mov dword [rsp + 0x4c], 1
mov r13d, eax
test rdi, rdi
je 0x140037d65
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x140037d65
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x41
jae 0x140037b92
lea ecx, [rax + 0x41]
jmp 0x140037ba1
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
inc rcx
mov edx, 1
call qword [case.0x14002440c.1]
mov r13, rax
test rax, rax
jne 0x140037bc0
lea eax, [r13 + 0x1b]
jmp 0x1400382ae
movzx eax, byte [rbx]
cmp al, 0x5b
jne 0x140037bef
mov edx, 0x5d
mov rcx, rbx
lea r14, [rbx + 1]
call fcn.1400525e8
mov rdi, rax
test rax, rax
je 0x140037cfe
mov r8, rax
mov rdx, r14
sub r8, r14
jmp 0x140037c5c
cmp al, 0x3a
jne 0x140037bf8
mov rdi, rbx
jmp 0x140037c64
mov edx, 0x3a
mov rcx, rbx
call fcn.1400525e8
mov rdi, rax
test rax, rax
je 0x140037cea
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_pton
cmp eax, 1
jne 0x140037c53
xor edx, edx
mov rcx, r13
mov r15d, edx
mov dword [rsp + 0x48], edx
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140037c40
jmp 0x140037cfe
mov r8, rdi
mov rdx, rbx
sub r8, rbx
mov rcx, r13
call fcn.140053c40
test rdi, rdi
je 0x140037cfe
mov edx, 0x3a
mov rcx, rdi
call fcn.1400525e8
mov rdi, rax
test rax, rax
je 0x140037cfe
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140055778
mov ecx, eax
call fcn.1400276a0
mov edx, 0x2d
mov rcx, rdi
movzx r14d, ax
mov dword [rsp + 0x48], r14d
call fcn.1400525e8
test rax, rax
je 0x140037ce4
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140055778
mov ecx, eax
call fcn.1400276a0
movzx r15d, ax
cmp r14w, ax
jbe 0x140037cfe
xor eax, eax
movzx r15d, ax
mov word [rsp + 0x48], ax
jmp 0x140037cfe
movzx r15d, r14w
jmp 0x140037cfe
mov rcx, r13
sub rcx, rbx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140037cf0
cmp byte [r13], 0
je 0x140037d65
mov rcx, qword [rsi + 0x58]
mov rcx, qword [rcx + 0x20]
call fcn.1400483b0
mov r8d, dword [rsi + 0xa0]
lea rcx, [rbp + 0xe0]
mov edx, eax
mov rax, qword [rsi + 0x58]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r13
call fcn.140048430
test eax, eax
je 0x140037d58
dec eax
je 0x1400382a9
dec eax
jne 0x140037d65
mov r14d, dword [rsp + 0x4c]
jmp 0x140037dd7
mov r14d, dword [rsp + 0x4c]
mov rdi, r13
jmp 0x140037dde
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140037da7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400472c0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x140038296
movzx ecx, word [rsp + 0x60]
mov r9d, 0x401
lea r8, [rbp + 0xe0]
cmp ecx, 0x17
je 0x140037dc5
lea rdx, [rsp + 0x64]
jmp 0x140037dcf
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14002cb60
xor r14d, r14d
lea rdi, [rbp + 0xe0]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140018fc0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14003828c
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rdx]
call fcn.1400195a0
test rbx, rbx
je 0x14003828c
mov rcx, r13
call qword [case.0x1400292fb.0]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop dword [rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140026b60
mov r13d, eax
test eax, eax
je 0x140037e5d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rbx + 0x28]
mov edi, eax
test rbx, rbx
jne 0x140037e30
jmp 0x140037e62
test rbx, rbx
jne 0x140037e85
mov edx, edi
mov rcx, rsi
call fcn.1400472c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.1400231d0
jmp 0x1400382a9
movsxd r8, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140052090
mov eax, dword [rsp + 0x48]
mov edx, dword [rbx + 0x10]
mov dword [rsp + 0x30], edx
movzx edi, ax
cmp ax, r15w
ja 0x140037f58
nop
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140037fe3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
je 0x140037f3f
cmp eax, 0x2741
jne 0x140037f3f
mov edx, eax
mov rcx, rsi
call fcn.1400472c0
movzx r8d, di
mov rdi, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, rdi
mov r9, rax
call fcn.140023120
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140037f7b
movzx edi, word [rsp + 0x48]
xor r14d, r14d
jmp 0x140037f4e
cmp eax, 0x2740
je 0x140037f4b
cmp eax, 0xd
jne 0x140037faf
inc di
cmp di, r15w
jbe 0x140037eb0
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.1400231d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140026af0
jmp 0x1400382a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400472c0
mov rcx, rdi
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.1400231d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140026af0
jmp 0x1400382a9
mov edx, eax
mov rcx, rsi
call fcn.1400472c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, di
call fcn.1400231d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140026af0
jmp 0x1400382a9
cmp di, r15w
ja 0x140037f58
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140038028
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400472c0
mov rcx, qword [rsp + 0x40]
jmp 0x140037f8e
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14003805d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400472c0
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x140037f95
lea rdx, [rbp - 0x20]
mov r8d, 0x100
mov rcx, rbx
call fcn.140018bf0
cmp dword [rsi + 0x3b0], 0
jne 0x14003808b
cmp dword [rsi + 0x388], 0
je 0x14003808b
mov dword [rsi + 0x3b0], 1
cmp r12d, 2
je 0x1400380e9
movzx eax, word [rsp + 0x60]
cmp dword [rsi + 0x3b0], 0
jne 0x1400380a4
test r12d, r12d
je 0x1400380e0
cmp r12d, 1
jne 0x1400380b0
cmp ax, 2
jne 0x1400380e0
movzx ecx, ax
cmp ecx, 2
je 0x1400380bd
cmp ecx, 0x17
jne 0x1400380e0
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test r12d, r12d
je 0x140038204
cmp r12d, 1
je 0x140038147
movzx eax, word [rsp + 0x60]
inc r12d
cmp r12d, 2
jne 0x140038096
lea rdi, [rsi + 0x6e8]
xor ebx, ebx
mov dword [rdi + 0xac], r12d
mov rdx, qword [rsi + 0x1b0]
cmp rdx, 0xffffffffffffffff
je 0x140038119
mov rcx, rsi
call fcn.140026af0
mov qword [rsi + 0x1b0], 0xffffffffffffffff
mov rax, qword [rsp + 0x38]
mov dword [rsi + 0x7fc], ebx
mov dword [rsi + 0x394], 1
mov qword [rsi + 0x1b0], rax
mov dword [rsi + 0x7a0], 0x1c
mov eax, r13d
jmp 0x1400382ae
lea rdi, [rbp + 0x4f0]
lea rdx, [rbp - 0x20]
mov r8d, 0x2c
movzx ecx, byte [rdx]
test cl, cl
je 0x140038174
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x140038158
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], 0
call sym.apple.exe_curl_msnprintf
lea rdi, [rsi + 0x6e8]
lea r9, [rbp + 0x4f0]
lea r8, str.PORT
lea rdx, [0x140074810]
mov rcx, rdi
call fcn.140048690
mov r13d, eax
test eax, eax
je 0x1400380f0
mov ecx, eax
call sym.apple.exe_curl_easy_strerror
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.1400231d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140026af0
mov dword [rsi + 0x7a0], 0
mov eax, r13d
jmp 0x1400382ae
movzx eax, r11w
xor ebx, ebx
cmp word [rsp + 0x60], 2
mov r9d, ebx
mov dword [rsp + 0x28], eax
setne r9b
lea rax, [rbp - 0x20]
lea rdi, [rsi + 0x6e8]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
inc r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140048690
mov r13d, eax
test eax, eax
je 0x1400380f2
mov ecx, eax
call sym.apple.exe_curl_easy_strerror
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.1400231d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140026af0
mov dword [rdi + 0xac], 1
mov dword [rsi + 0x7a0], ebx
mov eax, r13d
jmp 0x1400382ae
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x40]
call fcn.1400231d0
mov rcx, r13
call qword [case.0x1400292fb.0]
mov eax, 0x1e
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.140051c70
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
mov rax, qword [rdx + 0x1a8]
cmp dword [rax + 0x18], 0
je 0x14003b786
mov edx, 1
mov dword [rcx + 0x7a0], 0xd
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.14003ab50
cmp dword [rdx + 0x470], 0
je 0x14003b79b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x140037ad0
cmp dword [rdx + 0x4bc], 0
je 0x14003b83c
mov r8, qword [rcx + 0x768]
test r8, r8
jne 0x14003b7f6
mov r8, qword [rdx + 0x528]
test r8, r8
jne 0x14003b7d9
cmp dword [rdx + 0x46c], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x6e8
call fcn.140048690
test eax, eax
je 0x14003b82c
add rsp, 0x20
pop rbx
ret
add rcx, 0x6e8
cmp dword [rdx + 0x49c], 0
je 0x14003b81c
lea rdx, str.PRET_STOR__s
call fcn.140048690
test eax, eax
je 0x14003b82c
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140048690
test eax, eax
jne 0x14003b841
mov dword [rbx + 0x7a0], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.1400382e0
add rsp, 0x20
pop rbx
ret