Function at 0x1401c9af0
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 [0x14032f0c0]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rax, qword [rcx + 0x20]
xorps xmm0, xmm0
mov r14, qword [rcx + 0x760]
mov esi, edx
mov qword [rsp + 0x58], rax
mov r15, rcx
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x90], 0
mov qword [rsp + 0x48], rax
mov r13b, 1
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rbp + 0xb1], rax
mov r12d, eax
mov dword [rbp + 0xb9], eax
mov edi, eax
mov word [rbp + 0xbd], ax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x54], ax
mov word [rsp + 0x50], ax
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test r14, r14
je 0x1401c9cf8
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], dil
jne 0x1401c9ba0
cmp rax, 1
jbe 0x1401c9cf8
movzx eax, byte [r14]
cmp al, 0x5b
jne 0x1401c9beb
lea r12, [r14 + 1]
mov edx, 0x5d
mov rcx, r12
mov rbx, r12
call fcn.1401f9440
test rax, rax
mov r14, rax
mov rax, rdi
cmove r12, rdi
mov rdi, r14
sub rdi, rbx
test r14, r14
cmove rdi, rax
jmp 0x1401c9c2b
cmp al, 0x3a
je 0x1401c9c33
mov edx, 0x3a
mov rcx, r14
call fcn.1401f9440
mov rbx, rax
mov rdi, rax
mov r12, r14
test rax, rax
je 0x1401c9c86
lea r8, [rbp - 0x78]
mov rdx, r14
mov ecx, reloc.WS2_32.dll_socket
sub rdi, r14
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r14d, r14d
cmp eax, 1
cmovne r14, rbx
xor eax, eax
movzx ebx, ax
test r14, r14
je 0x1401c9c9f
mov edx, 0x3a
mov rcx, r14
call fcn.1401f9440
mov r14, rax
xor eax, eax
mov ebx, eax
test r14, r14
je 0x1401c9c9f
lea rcx, [r14 + 1]
xor edx, edx
lea r8d, [rax + 0xa]
call fcn.140213110
mov edx, 0x2d
mov rcx, r14
movzx ebx, ax
call fcn.1401f9440
test rax, rax
je 0x1401c9c81
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140213110
jmp 0x1401c9c9f
movzx eax, bx
jmp 0x1401c9c9f
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x1401c9c90
xor eax, eax
movzx ebx, ax
xor r14d, r14d
cmp bx, ax
mov edx, r14d
mov ecx, r14d
cmovbe dx, ax
cmovbe cx, bx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], ecx
test rdi, rdi
je 0x1401c9cf0
cmp rdi, 0x32
jae 0x1401ca4f4
mov r8, rdi
lea rcx, [rbp + 0xc0]
mov rdx, r12
call fcn.140276ca0
mov byte [rbp + rdi + 0xc0], r14b
lea r12, [rbp + 0xc0]
jmp 0x1401c9d8d
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x50], edx
mov r14, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x80
lea rdx, [rbp - 0x80]
mov rcx, qword [r14 + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c9d4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1401b9030
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r15
call fcn.14019b0a0
jmp 0x1401ca4f9
movzx eax, word [rbp - 0x80]
lea r8, [rbp + 0x250]
mov r9d, 0x401
cmp eax, 0x17
je 0x1401c9d68
mov ecx, eax
lea rdx, [rbp - 0x7c]
jmp 0x1401c9d71
lea rdx, [rbp - 0x78]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x1401ca4f9
xor r13b, r13b
lea r12, [rbp + 0x250]
xor r14d, r14d
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r15
call fcn.1401a5890
cmp eax, 1
jne 0x1401c9e47
mov rdi, qword [r15 + 0xe00]
mov edx, 0xffffffff
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401c9dd6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401c9df7
mov rcx, qword [rdi + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r14
test ebx, ebx
jne 0x1401c9dff
mov rcx, r15
call fcn.14019bfe0
mov r14, qword [r15 + 0xdf8]
mov byte [r15 + 0xe18], 1
test r14, r14
jne 0x1401c9e1b
mov rcx, r15
call fcn.1401a6d30
lea rcx, [r15 + 0xdf0]
call fcn.14019c4e0
cmp qword [r15 + 0xdf8], 0
jne 0x1401c9e4c
mov rax, qword [r15 + 0x20]
cmp byte [rax + 0x2ae], 1
je 0x1401c9e4c
mov byte [rax + 0x2ae], 1
jmp 0x1401c9e4c
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x1401ca4e2
mov r9, qword [r15 + 0xe8]
mov rdi, qword [r14]
test r9, r9
je 0x1401c9e86
test byte [r9 + 4], 8
je 0x1401c9e86
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x1401c9e86
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, r15
lea r8d, [rdx - 1]
call rax
sub dword [r14 + 0x10], 1
jne 0x1401c9eb0
mov rcx, qword [r14]
test rcx, rcx
je 0x1401c9ea7
mov rbx, qword [rcx + 0x28]
call qword [fcn.140229280]
mov rcx, rbx
test rbx, rbx
jne 0x1401c9e95
mov rcx, r14
call qword [fcn.140229280]
mov r8, qword [r15 + 0xe8]
test r8, r8
je 0x1401c9eda
test byte [r8 + 4], 8
je 0x1401c9eda
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x1401c9eda
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, r15
call rax
test rdi, rdi
je 0x1401ca4e2
mov r14, qword [rsp + 0x58]
nop dword [rax + rax]
movzx ecx, byte [r14 + 0x6e2]
mov eax, dword [rdi + 4]
mov dword [rbp], eax
cmp cl, 3
je 0x1401c9f22
cmp cl, 6
je 0x1401c9f18
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x1401c9f30
mov qword [rbp + 4], 1
jmp 0x1401c9f30
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x1401c9f45
mov eax, 0x80
mov dword [rbp + 0xc], eax
mov rdx, qword [rdi + 0x20]
lea rcx, [rbp + 0x10]
mov r8d, eax
call fcn.140276ca0
lea r8, [rsp + 0x68]
mov rcx, r15
lea rdx, [rbp]
call fcn.1401b43c0
test eax, eax
je 0x1401c9fa7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401c9ef0
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1401b9030
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r15
call fcn.14019b0a0
mov rbx, qword [rsp + 0x68]
jmp 0x1401ca4fe
movsxd r8, dword [rdi + 0x10]
lea rcx, [rbp - 0x80]
mov rdx, qword [rdi + 0x20]
call fcn.140276ca0
mov eax, dword [rdi + 0x10]
mov r12, qword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x54]
movzx ebx, ax
mov qword [rsp + 0x48], r12
cmp ax, word [rsp + 0x50]
ja 0x1401ca08a
nop dword [rax + rax]
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, r12
mov word [rbp - 0x7e], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401ca0c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r13b, r13b
je 0x1401ca070
cmp eax, 0x2741
jne 0x1401ca070
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1401b9030
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r15
call fcn.14019b1d0
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
mov rcx, qword [r14 + 0x188]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401c9d1f
movzx ebx, word [rsp + 0x54]
xor r13b, r13b
jmp 0x1401c9fe0
cmp eax, 0x2740
je 0x1401ca07c
cmp eax, 0xd
jne 0x1401ca09e
inc bx
cmp bx, word [rsp + 0x50]
jbe 0x1401c9fe0
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r15
call fcn.14019b0a0
jmp 0x1401ca4f9
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1401b9030
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r15
call fcn.14019b0a0
jmp 0x1401ca4f9
cmp bx, word [rsp + 0x50]
ja 0x1401ca08a
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x80
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401ca117
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1401b9030
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r15
call fcn.14019b0a0
jmp 0x1401ca4f9
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1401ca154
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1401b9030
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r15
call fcn.14019b0a0
jmp 0x1401ca4f9
mov byte [rbp + 0x90], 0
mov ecx, dword [rdi + 4]
cmp ecx, 2
je 0x1401ca172
cmp ecx, 0x17
jne 0x1401ca18d
mov rdx, qword [rdi + 0x20]
add rdx, 8
jmp 0x1401ca17a
mov rdx, qword [rdi + 0x20]
add rdx, 4
mov r9d, 0x2f
lea r8, [rbp + 0x90]
call qword [sym.imp.WS2_32.dll_inet_ntop]
cmp byte [r14 + 0x2ba], 0
jne 0x1401ca1a9
cmp byte [r14 + 0x2b4], 0
je 0x1401ca1a9
mov byte [r14 + 0x2ba], 1
cmp esi, 2
je 0x1401ca202
movzx eax, word [rbp - 0x80]
cmp byte [r14 + 0x2ba], 0
jne 0x1401ca1c0
test esi, esi
je 0x1401ca1fb
cmp esi, 1
jne 0x1401ca1cb
cmp ax, 2
jne 0x1401ca1fb
movzx ecx, ax
cmp ecx, 2
je 0x1401ca1d8
cmp ecx, 0x17
jne 0x1401ca1fb
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test esi, esi
je 0x1401ca3ce
cmp esi, 1
je 0x1401ca318
movzx eax, word [rbp - 0x80]
inc esi
cmp esi, 2
jne 0x1401ca1b2
lea rbx, [r14 + 0x590]
xor r13d, r13d
mov rdx, r15
mov dword [rbx + 0x100], esi
lea rcx, [r14 + 0x1c0]
call fcn.140191aa0
mov edx, 0x188
mov ecx, 1
call qword [str._1_]
mov rdi, rax
test rax, rax
je 0x1401ca4c3
movzx eax, byte [r14 + 0x6e2]
mov edx, 0x28
mov dword [rdi], eax
mov qword [rdi + 0x98], r12
mov byte [rdi + 0x17d], 0
lea ecx, [rdx - 0x27]
call qword [str._1_]
mov rbx, rax
test rax, rax
je 0x1401ca4c0
mov qword [rbx + 0x10], rdi
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
lea r8, str.added
mov rcx, qword [r14 + 0x1c0]
mov rdx, rbx
mov qword [rbx + 8], rcx
mov r12d, r13d
mov qword [rbx + 0x18], r14
mov rcx, r15
mov dword [rbx + 0x20], 1
mov qword [r14 + 0x1c0], rbx
call fcn.14019b2c0
mov rax, qword [rdi + 0x98]
mov rdx, r15
mov rcx, rbx
mov qword [r14 + 0x190], rax
call fcn.1401b51c0
cmp byte [0x140336ac1], 0
mov byte [rdi + 0x17f], 1
je 0x1401ca454
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140336ab8]
mov rax, qword [rsp + 0x60]
cqo
idiv r8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x1401ca47f
lea r10, [rbp + 0x100]
mov r9d, 0x2c
lea rdx, [rbp + 0x90]
nop dword [rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x1401ca34c
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x1401ca330
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], 0
call fcn.1401842a0
lea rax, [rbp + 0x100]
mov rcx, r15
lea rbx, [r14 + 0x590]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r9, str.PORT
lea r8, [0x1402fbe14]
call fcn.1401e6a80
mov r12d, eax
test eax, eax
je 0x1401ca44a
mov ecx, eax
call fcn.1401b8540
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r15
call fcn.14019b0a0
mov rbx, qword [rsp + 0x48]
jmp 0x1401ca504
movzx eax, r8w
lea rbx, [r14 + 0x590]
mov dword [rsp + 0x30], eax
lea r9, str.EPRT
xor r13d, r13d
lea rax, [rbp + 0x90]
cmp word [rbp - 0x80], 2
lea r8, str._s__d_s_hu
mov ecx, r13d
mov qword [rsp + 0x28], rax
setne cl
mov rdx, rbx
inc ecx
mov dword [rsp + 0x20], ecx
mov rcx, r15
call fcn.1401e6a80
mov r12d, eax
test eax, eax
je 0x1401ca440
mov ecx, eax
call fcn.1401b8540
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r15
call fcn.14019b0a0
mov rbx, qword [rsp + 0x48]
jmp 0x1401ca504
mov r12, qword [rsp + 0x48]
jmp 0x1401ca20c
mov r12, qword [rsp + 0x48]
jmp 0x1401ca209
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x68], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x70], eax
lea r8, str.Curl_conn_tcp_listen_set__qd_
movups xmm0, xmmword [rsp + 0x68]
mov rdx, rbx
mov rcx, r15
movups xmmword [rdi + 0x158], xmm0
mov byte [rbx + 0x24], 1
mov r9, qword [rdi + 0x98]
call fcn.14019b2c0
mov rax, qword [r15 + 0x20]
mov rbx, 0xffffffffffffffff
mov byte [rax + 0x69e], 0x1c
jmp 0x1401ca50f
mov r13, rbx
mov rcx, r13
mov r12d, 0x1b
call qword [fcn.140229280]
mov rcx, rdi
call qword [fcn.140229280]
mov rbx, qword [rsp + 0x48]
jmp 0x1401ca504
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r15
call fcn.14019b0a0
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov r12d, 0x1e
mov rax, qword [r15 + 0x20]
mov byte [rax + 0x69e], 0
cmp rbx, 0xffffffffffffffff
je 0x1401ca52e
test r14, r14
je 0x1401ca525
mov rdx, rbx
mov rcx, r15
call fcn.14018ac20
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r12d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.1401f4d70
mov rbx, qword [rsp + 0x7c0]
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret