Function at 0x14010a7c0
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 - 0x8f0]
sub rsp, 0x9f0
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
mov r15, qword [rcx]
mov r12, rcx
mov ebx, edx
lea rcx, [rbp - 0x2f]
xor r14d, r14d
xor edx, edx
mov r8d, 0xff
mov byte [rbp - 0x30], r14b
call fcn.14025e980
mov rsi, qword [r15 + 0x408]
mov qword [rsp + 0x40], r14
mov rdi, qword [r15 + 0x408]
mov word [rsp + 0x38], r14w
mov word [rsp + 0x34], r14w
mov r13d, r14d
test rdi, rdi
je 0x14010a2a4
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x14010a2a4
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x16
jae 0x14010a18d
lea ecx, [rax + 0x16]
jmp 0x14010a19c
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
inc rcx
mov edx, 1
call qword [case.0x1400fca78.3]
mov r13, rax
test rax, rax
jne 0x14010a1bb
lea eax, [r13 + 0x1b]
jmp 0x14010a4e1
cmp byte [rsi], 0x3a
jne 0x14010a1c5
mov rdi, rsi
jmp 0x14010a1eb
mov edx, Ordinal_60
mov rcx, rsi
call fcn.140262a68
mov rcx, r13
mov rdi, rax
test rax, rax
je 0x14010a259
mov r8, rax
mov rdx, rsi
sub r8, rsi
call fcn.140262330
test rdi, rdi
je 0x14010a26e
mov edx, Ordinal_60
mov rcx, rdi
call fcn.140262a68
mov rdi, rax
test rax, rax
je 0x14010a26e
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1402628ec
mov edx, Ordinal_46
mov rcx, rdi
mov esi, eax
mov dword [rsp + 0x38], eax
call fcn.140262a68
test rax, rax
je 0x14010a252
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1402628ec
mov dword [rsp + 0x34], eax
cmp si, ax
jbe 0x14010a26e
mov word [rsp + 0x34], r14w
mov word [rsp + 0x38], r14w
jmp 0x14010a26e
mov word [rsp + 0x34], si
jmp 0x14010a26e
sub rcx, rsi
nop dword [rax]
movzx eax, byte [rsi]
inc rsi
mov byte [rcx + rsi - 1], al
test al, al
jne 0x14010a260
cmp byte [r13], r14b
je 0x14010a2a4
mov rax, qword [r12 + 0x50]
lea r8, [rbp + 0xd0]
mov r9d, 0x401
mov ecx, dword [rax + 4]
mov rdx, r13
call fcn.14008faf0
lea rdx, [rbp + 0xd0]
test rax, rax
cmove rdx, r13
jmp 0x14010a324
mov rcx, qword [r12 + 0x120]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x14010a301
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400f2cd0
lea rdx, str.getsockname___failed:__s
mov rcx, r15
mov r8, rax
call fcn.1400fe410
test r13, r13
je 0x14010a4dc
mov rcx, r13
call qword [fcn.14025db40]
jmp 0x14010a4dc
movzx ecx, word [rsp + 0x50]
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x54]
mov r9d, 0x401
call fcn.140103370
lea rdx, [rbp + 0xd0]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
call fcn.1400f5000
cmp eax, 1
jne 0x14010a346
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140103c70
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14010a35d
mov rdi, qword [rdx]
mov rcx, r15
call fcn.1400f51c0
jmp 0x14010a360
mov rdi, r14
test r13, r13
je 0x14010a36e
mov rcx, r13
call qword [fcn.14025db40]
test rdi, rdi
jne 0x14010a387
lea rdx, str.Curl_resolv_failed__we_can_not_recover_
mov rcx, r15
call fcn.1400fe410
jmp 0x14010a4dc
cmp dword [rdi + 8], r14d
jne 0x14010a398
mov eax, dword [r12 + 0x9c]
mov dword [rdi + 8], eax
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WSOCK32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14010a3e1
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14010a387
mov edx, eax
mov rcx, r12
call fcn.1400f2cd0
lea rdx, str.socket_failure:__s
mov rcx, r15
mov r8, rax
call fcn.1400fe410
jmp 0x14010a4dc
movsxd r8, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14025ccd0
mov eax, dword [rsp + 0x38]
mov edx, dword [rdi + 0x10]
mov dword [rsp + 0x30], edx
movzx esi, ax
cmp ax, word [rsp + 0x34]
ja 0x14010a4c4
nop dword [rax]
cmp word [rsp + 0x50], 2
jne 0x14010a426
movzx ecx, si
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x14010a55a
call fcn.140263720
cmp dword [rax], 0x2741
jne 0x14010a49f
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400f2cd0
lea rdx, str.bind_port_i__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r15
call fcn.1400fe410
mov rcx, qword [r12 + 0x120]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x14010a50b
movzx esi, word [rsp + 0x38]
jmp 0x14010a4b9
call fcn.140263720
cmp dword [rax], 0x2740
je 0x14010a4b6
call fcn.140263720
cmp dword [rax], 0xd
jne 0x14010a52f
inc si
cmp si, word [rsp + 0x34]
jbe 0x14010a410
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r15
call fcn.1400fe410
mov rcx, r13
call qword [sym.imp.WSOCK32.dll_closesocket]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.14025db20
mov rbx, qword [rsp + 0xa40]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400f2cd0
lea rdx, str.getsockname___failed:__s
mov rcx, r15
mov r8, rax
call fcn.1400fe410
jmp 0x14010a4d3
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400f2cd0
lea rdx, str.bind_port_i__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r15
call fcn.1400fe410
jmp 0x14010a4d3
cmp si, word [rsp + 0x34]
ja 0x14010a4c4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r13
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x14010a50b
lea edx, [rax + 1]
mov rcx, r13
call qword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x14010a5bb
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
mov edx, eax
call fcn.1400f2cd0
lea rdx, str.socket_failure:__s
mov rcx, r15
mov r8, rax
call fcn.1400fe410
jmp 0x14010a4d3
lea rdx, [rbp - 0x30]
mov r8d, 0x100
mov rcx, rdi
call fcn.1400f4d60
cmp ebx, 2
je 0x14010a6ec
movzx eax, word [rsp + 0x50]
nop dword [rax + rax]
cmp byte [r12 + 0x1f9], r14b
jne 0x14010a5ee
test ebx, ebx
je 0x14010a620
cmp ebx, 1
jne 0x14010a5f9
cmp ax, 2
jne 0x14010a620
cmp ax, 2
jne 0x14010a620
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx r11d, ax
test ebx, ebx
je 0x14010a6ac
cmp ebx, 1
je 0x14010a62c
movzx eax, word [rsp + 0x50]
inc ebx
cmp ebx, 2
jne 0x14010a5e0
jmp 0x14010a6ec
lea rdi, [rbp + 0x4e0]
lea rdx, [rbp - 0x30]
mov r8d, Ordinal_46
nop dword [rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x14010a65c
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x14010a640
movzx r9d, r11w
lea r8, str.__d__d
mov edx, reloc.WSOCK32.dll_sendto
movzx eax, r9b
mov rcx, rdi
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rdi], r14b
call fcn.1400f3910
lea r9, [rbp + 0x4e0]
lea r8, str.PORT
lea rdx, str._s__s
mov rcx, r12
call fcn.140109840
mov r14d, eax
test eax, eax
je 0x14010a6ec
jmp 0x14010a4e1
cmp word [rsp + 0x50], 2
movzx eax, r11w
lea r8, str.EPRT
mov dword [rsp + 0x28], eax
setne r14b
lea rax, [rbp - 0x30]
lea rdx, str._s__d_s_d
lea r9d, [r14 + 1]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140109840
mov r14d, eax
test eax, eax
jne 0x14010a4e1
mov dword [r12 + 0x474], ebx
mov rcx, qword [r12 + 0x128]
cmp rcx, 0xffffffffffffffff
je 0x14010a708
call qword [sym.imp.WSOCK32.dll_closesocket]
mov edx, Ordinal_30
mov rcx, r12
mov qword [r12 + 0x128], r13
mov byte [r12 + 0x1f1], 1
call fcn.140109200
mov eax, r14d
jmp 0x14010a4e1
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x1f8], 0
mov rbx, rcx
jne 0x14010a762
movzx eax, byte [rcx + 0x1f8]
cmp byte [rbx + 0x1ef], 0
mov ecx, 1
cmovne eax, ecx
mov byte [rbx + 0x1f8], al
xor edi, edi
lea rdx, [0x1403551f8]
mov rcx, rbx
cmp byte [rbx + 0x1f8], dil
sete dil
movsxd rax, edi
lea r8, [rax + rax*4]
lea rax, str.EPSV
add r8, rax
call fcn.140109840
test eax, eax
jne 0x14010a7b5
lea edx, [rax + 0x1d]
mov rcx, rbx
mov dword [rbx + 0x474], edi
call fcn.140109200
mov rcx, qword [rbx]
lea rdx, str.Connect_data_stream_passively_n
call fcn.1400fe360
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x87c0]
cmp dword [rax + 0x18], 0
je 0x14010a7ec
mov edx, reloc.WSOCK32.dll_listen
call fcn.140109200
mov r8d, edx
mov dl, 1
add rsp, 0x28
jmp fcn.14010c190
cmp byte [rdx + 0x37e], 0
je 0x14010a800
xor edx, edx
add rsp, 0x28
jmp 0x14010a0e0
add rsp, 0x28
jmp 0x14010a730