Function at 0x140048220
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
sub rsp, 0x680
mov rax, qword [0x1400b6f80]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rax, qword [rcx]
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0xe0], 0
mov rbp, rcx
xor ecx, ecx
mov esi, edx
mov qword [rsp + 0xe1], rcx
mov qword [rsp + 0xe9], rcx
mov qword [rsp + 0xf1], rcx
mov qword [rsp + 0xf9], rcx
mov qword [rsp + 0x101], rcx
mov dword [rsp + 0x109], ecx
mov word [rsp + 0x10d], cx
mov rbx, qword [rax + 0xca8]
mov qword [rsp + 0x50], rcx
mov rdi, qword [rax + 0xca8]
mov r13w, cx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r13d
mov r14w, cx
lea r15d, [rcx + 1]
mov r12, rcx
test rdi, rdi
je 0x1400484c2
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, r15
jbe 0x1400484c2
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov rdx, r15
repne scasb al, byte [rdi]
mov eax, 0x41
not rcx
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [fcn.140070dd0]
mov r12, rax
test rax, rax
jne 0x14004831f
lea eax, [r15 + 0x1a]
jmp 0x140048a82
movzx eax, byte [rbx]
cmp al, 0x5b
jne 0x14004835b
mov edx, 0x5d
mov rcx, rbx
lea r13, [rbx + 1]
call fcn.140071c20
mov rdi, rax
test rax, rax
je 0x140048460
mov r8, rax
mov rdx, r13
mov rcx, r12
sub r8, r13
call fcn.1400702a0
mov r13d, dword [rsp + 0x48]
jmp 0x1400483c3
cmp al, 0x3a
jne 0x140048364
mov rdi, rbx
jmp 0x1400483c3
mov edx, Ordinal_60
mov rcx, rbx
call fcn.140071c20
mov rdi, rax
test rax, rax
je 0x140048443
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call fcn.14005bca0
mov rcx, r12
cmp eax, r15d
jne 0x1400483b5
xor edx, edx
sub rcx, rbx
mov r14d, edx
mov r13d, edx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x1400483a2
jmp 0x140048465
mov r8, rdi
mov rdx, rbx
sub r8, rbx
call fcn.1400702a0
test rdi, rdi
je 0x140048465
mov edx, Ordinal_60
mov rcx, rdi
call fcn.140071c20
mov rdi, rax
test rax, rax
je 0x140048465
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140071bec
mov ecx, eax
call fcn.1400341f0
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rdi
mov r13w, ax
call fcn.140071c20
test rax, rax
je 0x14004843d
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.140071bec
mov ecx, eax
call fcn.1400341f0
mov r14w, ax
cmp r13w, ax
jbe 0x140048465
xor eax, eax
mov r14w, ax
mov r13w, ax
jmp 0x140048465
mov r14w, r13w
jmp 0x140048465
mov rcx, r12
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140048450
jmp 0x140048465
mov r13d, dword [rsp + 0x48]
cmp byte [r12], 0
je 0x1400484c2
mov rcx, qword [rbp + 0x2e0]
mov rcx, qword [rcx + 0x20]
call fcn.140060ae0
mov r8d, dword [rbp + 0x328]
lea rcx, [rsp + 0x260]
mov edx, eax
mov rax, qword [rbp + 0x2e0]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r12
call fcn.1400318b0
test eax, eax
je 0x14004850f
sub eax, r15d
je 0x140048a7d
cmp eax, r15d
je 0x14004854e
mov rcx, qword [rbp + 0x4c0]
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 0x140048514
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x140048a6a
mov rdi, r12
jmp 0x140048556
movzx ecx, word [rsp + 0x60]
mov r9d, 0x401
lea r8, [rsp + 0x260]
cmp ecx, 0x17
je 0x140048533
lea rdx, [rsp + 0x64]
jmp 0x14004853d
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.140060f30
test rax, rax
je 0x140048a7d
xor r15d, r15d
lea rdi, [rsp + 0x260]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140055350
cmp eax, 1
jne 0x140048583
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140035b60
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140048a60
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rdx]
call fcn.1400555e0
test rbx, rbx
je 0x140048a60
mov rcx, r12
call qword [fcn.14006d598]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop dword [rax + rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call fcn.140039d60
mov r12d, eax
test eax, eax
je 0x1400485ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rbx + 0x28]
mov edi, eax
test rbx, rbx
jne 0x1400485c0
jmp 0x1400485f2
test rbx, rbx
jne 0x140048620
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, edi
call fcn.140034b60
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.140037e70
jmp 0x140048a7d
movsxd r8, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14006ecb0
mov edx, dword [rbx + 0x10]
movzx edi, r13w
mov dword [rsp + 0x30], edx
cmp r13w, r14w
ja 0x1400486f9
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 0x14004879a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r15d, r15d
je 0x1400486e0
cmp eax, 0x2741
jne 0x1400486e0
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
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.140037d10
mov rcx, qword [rbp + 0x4c0]
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 0x14004871c
mov di, r13w
xor r15d, r15d
jmp 0x1400486ef
cmp eax, 0x2740
je 0x1400486ec
cmp eax, 0xd
jne 0x14004875b
inc di
cmp di, r14w
jbe 0x140048647
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.140037e70
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140039cc0
jmp 0x140048a7d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
mov rcx, rdi
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.140037e70
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140039cc0
jmp 0x140048a7d
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, di
call fcn.140037e70
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140039cc0
jmp 0x140048a7d
cmp di, r14w
ja 0x1400486f9
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 0x1400487ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
mov rcx, qword [rsp + 0x40]
jmp 0x14004873a
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14004882a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x140048741
lea rdx, [rsp + 0xe0]
mov r8d, Ordinal_50
mov rcx, rbx
call fcn.140054bf0
cmp dword [rbp + 0x6c0], 0
jne 0x14004885c
cmp dword [rbp + 0x6a4], 0
je 0x14004885c
mov dword [rbp + 0x6c0], 1
cmp esi, 2
je 0x1400488b3
movzx eax, word [rsp + 0x60]
cmp dword [rbp + 0x6c0], 0
jne 0x140048873
test esi, esi
je 0x1400488ac
cmp esi, 1
jne 0x14004887e
cmp ax, 2
jne 0x1400488ac
movzx ecx, ax
cmp ecx, 2
je 0x14004888b
cmp ecx, 0x17
jne 0x1400488ac
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test esi, esi
je 0x1400489d4
cmp esi, 1
je 0x140048910
mov ax, word [rsp + 0x60]
inc esi
cmp esi, 2
jne 0x140048866
lea rdi, [rbp + 0xa58]
xor ebx, ebx
mov dword [rdi + 0xb4], esi
mov rdx, qword [rbp + 0x4c8]
cmp rdx, 0xffffffffffffffff
je 0x1400488e2
mov rcx, rbp
call fcn.140039cc0
mov qword [rbp + 0x4c8], 0xffffffffffffffff
mov rax, qword [rsp + 0x38]
mov dword [rbp + 0x66c], ebx
mov dword [rbp + 0x664], 1
mov qword [rbp + 0x4c8], rax
mov dword [rbp + 0xb18], Ordinal_33
mov eax, r12d
jmp 0x140048a82
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov r8d, Ordinal_45
movzx ecx, byte [rdx]
test cl, cl
je 0x140048943
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
add rdx, 1
mov byte [rdi - 1], al
jne 0x140048926
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 fcn.140053d40
lea rdi, [rbp + 0xa58]
lea r9, [rsp + 0x110]
lea r8, str.PORT
lea rdx, [0x1400933f8]
mov rcx, rdi
call fcn.140061600
mov r12d, eax
test eax, eax
je 0x1400488ba
mov ecx, eax
call fcn.140034270
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.140037e70
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140039cc0
mov dword [rbp + 0xb18], 0
mov eax, r12d
jmp 0x140048a82
movzx eax, r11w
xor ebx, ebx
cmp word [rsp + 0x60], 2
mov r9d, ebx
mov dword [rsp + 0x28], eax
setne r9b
lea rax, [rsp + 0xe0]
lea rdi, [rbp + 0xa58]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
inc r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140061600
mov r12d, eax
test eax, eax
je 0x1400488bc
mov ecx, eax
call fcn.140034270
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.140037e70
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.140039cc0
mov dword [rdi + 0xb4], 1
mov dword [rbp + 0xb18], ebx
mov eax, r12d
jmp 0x140048a82
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x40]
call fcn.140037e70
mov rcx, r12
call qword [fcn.14006d598]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.14006d1b0
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x680
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 + 0x10], 0
je 0x14004ba56
mov edx, 1
mov dword [rcx + 0xb18], 0xd
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.14004ad60
cmp dword [rdx + 0xfd8], 0
je 0x14004ba6b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x140048220
cmp dword [rdx + 0xfe4], 0
je 0x14004bb0c
mov r8, qword [rcx + 0xae0]
test r8, r8
jne 0x14004bac6
mov r8, qword [rdx + 0xc78]
test r8, r8
jne 0x14004baa9
cmp dword [rdx + 0xfd4], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0xa58
call fcn.140061600
test eax, eax
je 0x14004bafc
add rsp, 0x20
pop rbx
ret
add rcx, 0xa58
cmp dword [rdx + 0x1014], 0
je 0x14004baec
lea rdx, str.PRET_STOR__s
call fcn.140061600
test eax, eax
je 0x14004bafc
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140061600
test eax, eax
jne 0x14004bb11
mov dword [rbx + 0xb18], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.140048ab0
add rsp, 0x20
pop rbx
ret