Function at 0x14001a8a0
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 - 0x670]
sub rsp, 0x770
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rax, qword [rcx + 0x20]
xorps xmm0, xmm0
mov r14, qword [rcx + 0x760]
mov rsi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x90], 0
mov qword [rsp + 0x58], rax
movzx r15d, cx
mov qword [rsp + 0x60], rax
mov edi, edx
xor eax, eax
mov qword [rsp + 0x78], rcx
mov qword [rbp + 0xb1], rax
mov r13d, 0x1e
mov dword [rbp + 0xb9], eax
mov r12d, ecx
mov word [rbp + 0xbd], ax
mov ebx, ecx
mov word [rsp + 0x44], cx
mov dword [rsp + 0x50], r15d
mov byte [rsp + 0x40], 1
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test r14, r14
je 0x14001aa7d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r14 + rax], cl
jne 0x14001a960
cmp rax, 1
jbe 0x14001aa7d
cmp byte [r14], 0x3a
jne 0x14001a97e
mov rax, r14
jmp 0x14001a99a
mov edx, 0x3a
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r12, r14
test rax, rax
je 0x14001a9fa
mov rbx, rax
sub rbx, r14
mov edx, 0x3a
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
test rax, rax
je 0x14001aa0b
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov edx, Ordinal_46
mov rcx, r14
mov r15d, eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x14001a9f3
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov r15d, eax
mov dword [rsp + 0x50], eax
jmp 0x14001aa0b
mov dword [rsp + 0x50], r15d
jmp 0x14001aa0b
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14001aa01
mov ecx, dword [rsp + 0x44]
xor eax, eax
cmp cx, r15w
mov r14d, eax
cmovbe r14w, r15w
mov r15d, eax
mov eax, dword [rsp + 0x50]
cmp cx, ax
cmovbe r15w, cx
test rbx, rbx
je 0x14001aa6f
cmp rbx, 0x32
jae 0x14001b2b2
mov r8, rbx
lea rcx, [rbp + 0xc0]
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx eax, r14w
mov byte [rbp + rbx + 0xc0], 0
mov dword [rsp + 0x50], eax
lea r12, [rbp + 0xc0]
mov word [rsp + 0x44], r15w
jmp 0x14001ab34
movzx eax, r14w
mov word [rsp + 0x44], r15w
mov dword [rsp + 0x50], eax
mov r15, qword [rsp + 0x48]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [r15 + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14001aacf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.140053f40
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140013150
jmp 0x14001b2b7
movzx eax, word [rbp - 0x80]
cmp ax, 2
je 0x14001ab08
cmp ax, 0x17
je 0x14001aaf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
jmp 0x14001b2b7
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.140034320
jmp 0x14001ab1e
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.140034250
test rax, rax
je 0x14001b2b7
xor al, al
lea r12, [rbp + 0x250]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
call fcn.140022ca0
cmp eax, 1
jne 0x14001ac1c
mov r14, qword [rsi + 0xe18]
mov edx, 0xffffffff
mov rcx, qword [r14]
test rcx, rcx
je 0x14001ab7d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001aba2
mov rcx, qword [r14 + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [r14 + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 8], 0
test ebx, ebx
jne 0x14001abaa
mov rcx, rsi
call fcn.140002660
mov r15, qword [rsi + 0xe10]
mov byte [rsi + 0xe30], 1
test r15, r15
jne 0x14001abf0
mov rax, qword [rsi + 0x20]
lea rcx, str.host
mov r9, qword [rsi + 0xe08]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x2a8], r15b
cmove r8, rcx
mov rcx, rsi
call fcn.140013150
lea rcx, [rsi + 0xe08]
call fcn.140002b50
cmp qword [rsi + 0xe10], 0
jne 0x14001ac21
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x2ae], 1
je 0x14001ac21
mov byte [rax + 0x2ae], 1
jmp 0x14001ac21
mov r15, qword [rsp + 0x78]
test r15, r15
je 0x14001b2a0
mov r9, qword [rsi + 0xe8]
mov r14, qword [r15]
test r9, r9
je 0x14001ac5b
test byte [r9 + 4], 8
je 0x14001ac5b
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x14001ac5b
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, rsi
lea r8d, [rdx - 1]
call rax
sub dword [r15 + 0x10], 1
jne 0x14001ac8b
mov rcx, qword [r15]
test rcx, rcx
je 0x14001ac82
nop word [rax + rax]
mov rbx, qword [rcx + 0x28]
call qword [0x14007c4b8]
mov rcx, rbx
test rbx, rbx
jne 0x14001ac70
mov rcx, r15
call qword [0x14007c4b8]
mov r8, qword [rsi + 0xe8]
test r8, r8
je 0x14001acb5
test byte [r8 + 4], 8
je 0x14001acb5
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14001acb5
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rsi
call rax
test r14, r14
je 0x14001b2a0
mov r15, qword [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r15 + 0x4aa]
mov eax, dword [r14 + 4]
mov dword [rbp], eax
cmp cl, 3
je 0x14001ad03
cmp cl, 6
je 0x14001acf9
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x14001ad11
mov qword [rbp + 4], 1
jmp 0x14001ad11
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [r14 + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x14001ad27
mov eax, 0x80
mov dword [rbp + 0xc], eax
mov rdx, qword [r14 + 0x20]
lea rcx, [rbp + 0x10]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x60]
mov rcx, rsi
lea rdx, [rbp]
call fcn.140006740
test eax, eax
je 0x14001ad89
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x14001acd0
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.140053f40
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140013150
mov r12, qword [rsp + 0x60]
jmp 0x14001b2bc
movsxd r8, dword [r14 + 0x10]
lea rcx, [rbp - 0x80]
mov rdx, qword [r14 + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r14 + 0x10]
mov r15d, dword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x44]
movzx ebx, ax
cmp ax, r15w
ja 0x14001ae7e
nop dword [rax]
cmp word [rbp - 0x80], 2
jne 0x14001add4
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov r8d, dword [rsp + 0x70]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14001aec5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x14001ae61
cmp eax, 0x2741
jne 0x14001ae61
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.140053f40
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, rsi
call fcn.140013280
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [rax + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14001aee9
movzx ebx, word [rsp + 0x44]
mov byte [rsp + 0x40], al
jmp 0x14001adc0
cmp eax, 0x2740
je 0x14001ae6d
cmp eax, 0xd
jne 0x14001ae97
inc bx
mov byte [rsp + 0x40], cl
cmp bx, r15w
jbe 0x14001adc0
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rsi
call fcn.140013150
mov r15, qword [rsp + 0x48]
jmp 0x14001b2bc
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.140053f40
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, rsi
call fcn.140013150
mov r15, qword [rsp + 0x48]
jmp 0x14001b2bc
cmp bx, r15w
ja 0x14001ae7e
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14001af19
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.140053f40
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140013150
mov r15, qword [rsp + 0x48]
jmp 0x14001b2bc
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14001af5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.140053f40
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140013150
mov r15, qword [rsp + 0x48]
jmp 0x14001b2bc
mov byte [rbp + 0x90], 0
cmp dword [r14 + 4], 2
jne 0x14001af83
mov rcx, qword [r14 + 0x20]
lea rdx, [rbp + 0x90]
add rcx, 4
mov r8d, 0x2f
call fcn.140034250
mov rbx, qword [rsp + 0x48]
mov rdx, rsi
lea r15, [rbx + 0x1c0]
mov rcx, r15
call fcn.140009140
mov edx, 0x188
mov ecx, 1
call qword [case.0x14005c177.1]
mov r14, rax
test rax, rax
jne 0x14001afd4
mov rcx, rax
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [0x14007c4b8]
mov rcx, r14
call qword [0x14007c4b8]
mov r15, qword [rsp + 0x48]
jmp 0x14001b2bc
movzx eax, byte [rbx + 0x4aa]
mov edx, Ordinal_41
mov dword [r14], eax
mov qword [r14 + 0x98], r12
mov byte [r14 + 0x17d], 0
lea ecx, [rdx - 0x27]
call qword [case.0x14005c177.1]
mov rbx, rax
test rax, rax
je 0x14001afb2
mov qword [rbx + 0x10], r14
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
lea r8, str.added
mov rax, qword [r15]
mov rdx, rbx
mov qword [rbx + 8], rax
mov rcx, rsi
mov rax, qword [rsp + 0x48]
xor r13d, r13d
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], 1
mov qword [r15], rbx
call fcn.140013370
mov rax, qword [r14 + 0x98]
mov rdx, rsi
mov r15, qword [rsp + 0x48]
mov rcx, rbx
mov qword [r15 + 0x190], rax
call fcn.1400073f0
cmp byte [0x14007eb28], r13b
mov byte [r14 + 0x17f], 1
je 0x14001b0a8
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x14007eb20]
mov rax, qword [rsp + 0x78]
cqo
idiv r8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14001b0cf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
mov qword [rsp + 0x60], rax
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x68], eax
lea r8, str.Curl_conn_tcp_listen_set__qd_
movups xmm0, xmmword [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
movups xmmword [r14 + 0x158], xmm0
mov byte [rbx + 0x24], 1
mov r9, qword [r14 + 0x98]
call fcn.140013370
mov r12, 0xffffffffffffffff
cmp edi, 2
je 0x14001b164
movzx eax, word [rbp - 0x80]
nop dword [rax]
cmp byte [r15 + 0x2ba], r13b
jne 0x14001b11d
test edi, edi
je 0x14001b15d
cmp edi, 1
jne 0x14001b138
cmp ax, 2
jne 0x14001b15d
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
jmp 0x14001b154
cmp ax, 2
jne 0x14001b15d
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x14001b238
cmp edi, 1
je 0x14001b18a
movzx eax, word [rbp - 0x80]
inc edi
cmp edi, 2
jne 0x14001b110
lea rbx, [r15 + 0x360]
mov dword [rbx + 0x100], edi
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x46e], 0x1c
test r13d, r13d
je 0x14001b2c7
jmp 0x14001b2bc
lea r10, [rbp + 0x100]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
nop
movzx ecx, byte [rdx]
test cl, cl
je 0x14001b1bc
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x14001b1a0
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], r13b
call fcn.140039c30
lea rax, [rbp + 0x100]
mov rcx, rsi
lea rbx, [r15 + 0x360]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r9, [0x140067fb5]
lea r8, [0x14006d074]
call fcn.140042880
mov r13d, eax
test eax, eax
je 0x14001b16b
mov ecx, eax
call fcn.140053520
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, rsi
call fcn.140013150
jmp 0x14001b2bc
cmp word [rbp - 0x80], 2
lea rax, [rbp + 0x90]
mov dword [rsp + 0x30], r8d
lea rbx, [r15 + 0x360]
mov rcx, r13
mov qword [rsp + 0x28], rax
setne cl
lea r9, str.EPRT
inc ecx
lea r8, str._s__d_s_hu
mov dword [rsp + 0x20], ecx
mov rdx, rbx
mov rcx, rsi
call fcn.140042880
mov r13d, eax
test eax, eax
je 0x14001b16b
mov ecx, eax
call fcn.140053520
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, rsi
call fcn.140013150
jmp 0x14001b2bc
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rsi
call fcn.140013150
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x46e], 0
cmp r12, 0xffffffffffffffff
je 0x14001b2e6
test r15, r15
je 0x14001b2dd
mov rdx, r12
mov rcx, rsi
call fcn.14003f4a0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r13d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x7c0]
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret