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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x140078e60
cmp dword [rcx + 0x330], 0
jne 0x140078d7c
cmp dword [rcx + 0x398], 0
jne 0x140078d7c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140078c32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140066c40
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140075620
jmp 0x140078e60
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.140041940
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140078c8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140066c40
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140075620
jmp 0x140078e60
lea r8, [rdi + 0x144]
lea rdx, [rdi + 0x114]
lea rcx, [rsp + 0xb0]
call fcn.140078b00
test eax, eax
jne 0x140078cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140066c40
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140075620
jmp 0x140078e60
mov rax, qword [rdi + 0x114]
lea r8, [rdi + 0x178]
lea rdx, [rdi + 0x148]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0x11c]
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x78], rax
mov rax, qword [rdi + 0x124]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x12c]
mov qword [rdi + 0x88], rax
mov rax, qword [rdi + 0x134]
mov qword [rdi + 0x90], rax
mov eax, dword [rdi + 0x13c]
mov dword [rdi + 0x98], eax
movzx eax, word [rdi + 0x140]
mov word [rdi + 0x9c], ax
call fcn.140078b00
test eax, eax
jne 0x140078d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140066c40
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140075620
jmp 0x140078e60
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x114]
mov qword [rcx + 0x8b60], rax
mov rax, qword [rdi + 0x11c]
mov qword [rcx + 0x8b68], rax
mov rax, qword [rdi + 0x124]
mov qword [rcx + 0x8b70], rax
mov rax, qword [rdi + 0x12c]
mov qword [rcx + 0x8b78], rax
mov rax, qword [rdi + 0x134]
mov qword [rcx + 0x8b80], rax
mov eax, dword [rdi + 0x13c]
mov dword [rcx + 0x8b88], eax
movzx eax, word [rdi + 0x140]
mov word [rcx + 0x8b8c], ax
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x148]
mov qword [rcx + 0x8b94], rax
mov rax, qword [rdi + 0x150]
mov qword [rcx + 0x8b9c], rax
mov rax, qword [rdi + 0x158]
mov qword [rcx + 0x8ba4], rax
mov rax, qword [rdi + 0x160]
mov qword [rcx + 0x8bac], rax
mov rax, qword [rdi + 0x168]
mov qword [rcx + 0x8bb4], rax
mov eax, dword [rdi + 0x170]
mov dword [rcx + 0x8bbc], eax
movzx eax, word [rdi + 0x174]
mov word [rcx + 0x8bc0], ax
mov rcx, qword [rdi]
mov eax, dword [rdi + 0x144]
mov dword [rcx + 0x8b90], eax
mov rcx, qword [rdi]
mov eax, dword [rdi + 0x178]
mov dword [rcx + 0x8bc4], eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret