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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, qword [0x14062e6a8]
mov rsi, rdx
movzx edx, byte [rdx + 4]
mov rdi, rcx
shl edx, 8
mov dword [rsp + 0x20], r8d
movzx eax, byte [rsi + 5]
or edx, eax
movzx eax, byte [rsi + 6]
shl edx, 8
or edx, eax
movzx eax, byte [rsi + 7]
shl edx, 8
or edx, eax
jne 0x14029ce76
cmp dword [rbp + 0x78], edx
je 0x14029ce76
mov r9d, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x30]
mov edx, r9d
mov r8, rsi
call fcn.140295280
mov eax, dword [rbp + 0x78]
lea rsi, [rsp + 0x30]
mov byte [rsp + 0x37], al
shr eax, 8
mov byte [rsp + 0x36], al
shr eax, 8
mov byte [rsp + 0x35], al
shr eax, 8
mov byte [rsp + 0x34], al
cmp dword [rdi + 0x1c], 2
mov qword [rsp + 0xa8], rbx
jne 0x14029cf83
movzx ebx, byte [rsi + 2]
movzx eax, byte [rsi + 3]
shl bx, 8
or bx, ax
je 0x14029cf83
xor ecx, ecx
lea rax, [rbp + 0x1a]
mov edx, ecx
cmp word [rax - 2], bx
je 0x14029cedb
cmp word [rax], bx
je 0x14029ced9
cmp word [rax + 2], bx
je 0x14029ced4
cmp word [rax + 4], bx
je 0x14029cecf
add rdx, 4
add rax, 8
add ecx, 4
cmp rdx, 0x20
jl 0x14029cea5
jmp 0x14029cedb
add ecx, 3
jmp 0x14029cedb
add ecx, 2
jmp 0x14029cedb
inc ecx
cmp ecx, 0x20
jge 0x14029cf83
lea rcx, [rdi + 0x2d8]
call fcn.14029bad0
cmp byte [rdi + 0x26], 0
je 0x14029cf1d
cmp word [rdi + 0x130], 0
je 0x14029cf1d
lea rcx, [rdi + 0x2d8]
call fcn.14029bd50
mov eax, 0xfffffff5
mov dword [rdi + 0x28], 0xfffffff5
jmp 0x14029d05e
cmp qword [rdi + 0x10], 0xffffffffffffffff
je 0x14029cf45
mov rcx, qword [rdi + 0x10]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov r9, qword [rbp + 0x68]
mov edx, 4
mov r8d, dword [rbp + 0x64]
mov rcx, qword [rdi + 0x320]
call fcn.1402a2ab0
lea rcx, [rdi + 0x2d8]
mov qword [rdi + 0x320], rax
mov word [rdi + 0x130], bx
mov byte [rdi + 0x26], 1
call fcn.14029bd50
xor eax, eax
jmp 0x14029d05e
cmp word [rsi], 1
je 0x14029cfea
cmp dword [rdi + 0x18], 0x17
jne 0x14029cfea
cmp word [rsi], 0x17
je 0x14029cfea
mov edx, 0x1c
lea rcx, [rsp + 0x40]
call fcn.140295260
movzx ecx, byte [rsi + 2]
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x40], ax
movzx eax, byte [rsi + 3]
shl cx, 8
or cx, ax
call fcn.1402a25b0
mov rcx, qword [0x14062e6a8]
lea r9, [rsp + 0x20]
add rcx, 0x90
mov word [rsp + 0x42], ax
mov r8, rsi
lea rdx, [rsp + 0x40]
call fcn.1402a1920
mov rsi, rax
mov r8d, dword [rsp + 0x20]
mov rdx, rsi
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov ebx, eax
test eax, eax
jne 0x14029d059
cmp word [rsi], 1
je 0x14029d043
movzx edx, byte [rdi + 0x32]
movzx ecx, byte [rdi + 0x33]
shl edx, 8
or edx, ecx
jne 0x14029d043
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x30]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp byte [rdi + 0x132], 0
je 0x14029d059
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.WS2_32.dll_WSASetEvent]
mov dword [rdi + 0x28], ebx
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140284180
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret