Function at 0x140001548
Capabilities:
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc88]
sub rsp, 0xd60
mov rax, qword [0x140019158]
xor rax, rsp
mov qword [rbp + 0xc50], rax
movsd xmm0, qword [str.Broadcast]
lea rcx, [rbp + 0x340]
movzx eax, word [reloc.WS2_32.dll_WSACleanup]
mov r14d, 0x80
mov r8d, r14d
movsd qword [rbp + 0x330], xmm0
xor edx, edx
mov word [rbp + 0x338], ax
mov r13, r9
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], r14d
mov rcx, qword [0x140019138]
lea rax, [0x140019138]
cmp rcx, rax
je 0x1400015f8
test byte [rcx + 0x1c], 0x10
je 0x1400015f8
mov rax, qword [r13 + 0x18]
lea r9, [rbp + 0x330]
mov rcx, qword [rcx + 0x10]
mov edx, dword [rax]
mov rax, qword [r13 + 8]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
call fcn.140001314
mov edx, 0x401
lea rcx, [rbp + 0x440]
call qword [sym.imp.WS2_32.dll_GetHostNameW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001973
lea r9, [rsp + 0x58]
xor edx, edx
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0x440]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x140001973
mov rcx, qword [rsp + 0x58]
lea ebx, [rdi + 2]
mov esi, edi
mov r8, rcx
test rcx, rcx
je 0x14000167a
cmp esi, 0x14
jae 0x14000167a
cmp dword [r8 + 4], ebx
jne 0x140001671
mov rax, qword [r8 + 0x20]
mov edx, esi
inc esi
mov eax, dword [rax + 4]
mov dword [rbp + rdx*4 + 0x240], eax
mov r8, qword [r8 + 0x28]
test r8, r8
jne 0x140001654
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
mov r12d, edi
test esi, esi
je 0x1400017b8
lea r15, [rbp + 0x240]
lea rdi, [rbp + 0x290]
xor eax, eax
mov edx, ebx
mov r14d, eax
mov ecx, ebx
jmp 0x1400016d3
xor edx, edx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [rax + rax]
inc r14d
cmp r14d, 0x32
ja 0x14000190c
mov eax, 2
mov edx, eax
mov ecx, eax
mov r8d, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.WS2_32.dll_socket]
nop dword [rax + rax]
mov qword [rdi], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400016aa
mov eax, dword [r15]
lea rdx, [rbp + 0x10]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rbp + 0x14], eax
mov rcx, rbx
mov dword [rbp + 0x10], 2
call qword [sym.imp.WS2_32.dll_bind]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001944
mov rax, qword [r13 + 0x18]
mov dword [rsp + 0x60], 1
cmp dword [rax], 0xffffffff
jne 0x140001761
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001944
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001944
inc r12d
add rdi, 8
add r15, 4
mov ebx, 2
cmp r12d, esi
jb 0x14000169f
xor edi, edi
lea r14d, [rbx + 0x7e]
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov qword [rbp + 8], rdi
mov word [rbp], bx
call qword [sym.imp.WS2_32.dll_htons]
nop dword [rax + rax]
mov rcx, qword [r13 + 0x18]
mov word [rbp + 2], ax
mov eax, dword [rcx]
mov dword [rbp + 4], eax
mov eax, dword [rcx + 8]
xor ecx, ecx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], edi
call qword [sym.imp.msvcrt.dll_time]
nop dword [rax + rax]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
xor r15d, eax
call fcn.14000af38
lea rcx, [0x14000b370]
mov rbx, rax
lea rdx, [0x140019030]
test rax, rax
je 0x140001a0d
mov dword [rbp + 0x240], r15d
mov eax, 2
mov dword [rbp + 0x248], eax
mov dword [rbp + 0x250], eax
lea rax, [rbp + 0x340]
mov dword [rbp + 0x244], edi
mov dword [rbp + 0x24c], 0x186a0
mov dword [rbp + 0x254], 5
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x258], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rbp + 0x268], xmm1
movups xmm0, xmmword [rbx + 0x18]
movaps xmmword [rbp + 0x270], xmm0
movsd xmm1, qword [rbx + 0x28]
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x340]
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x58], rdx
lea rdx, [rbp + 0x240]
mov qword [rbp - 0x48], rax
movsd qword [rbp + 0x280], xmm1
mov dword [rsp + 0x70], 0x186a5
mov qword [rsp + 0x74], 1
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x38], r14d
call fcn.14000b990
test eax, eax
je 0x1400019e1
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.14000be68
test eax, eax
je 0x1400019e1
mov rax, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x14000b3c0.0]
mov dword [rsp + 0x50], eax
jmp 0x1400019e5
mov r10, qword [0x140019138]
lea rax, [0x140019138]
cmp r10, rax
je 0x14000194b
mov eax, 2
test byte [r10 + 0x1c], al
je 0x14000194b
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 9]
lea r9, [rbp + 0x330]
lea r8, [0x140015410]
call fcn.140001078
mov r10, qword [0x140019138]
test r12d, r12d
je 0x14000197a
lea rbx, [rbp + 0x290]
mov edi, r12d
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14000195a
mov r10, qword [0x140019138]
lea rax, [0x140019138]
cmp r10, rax
je 0x1400019b0
test byte [r10 + 0x1c], 0x10
je 0x1400019b0
mov rax, qword [r13 + 0x18]
lea r9, [rbp + 0x330]
mov ecx, dword [rax]
mov rax, qword [r13 + 8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14000115c
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.1400131f0
lea r11, [rsp + 0xd60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x50], edi
mov rax, qword [rbp - 0x58]
mov rax, qword [rax + 0x38]
test rax, rax
je 0x1400019fc
lea rcx, [rbp - 0x60]
call qword [case.0x14000b3c0.0]
mov rax, qword [rbx + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14000b3c0.0]
mov r14d, edi
mov ebx, edi
test esi, esi
je 0x140001a61
lea rdi, [rbp + 0x290]
mov r8d, dword [rsp + 0x50]
lea rax, [rbp]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x340]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001944
inc ebx
add rdi, 8
cmp ebx, esi
jb 0x140001a1d
xor edi, edi
mov ecx, edi
mov dword [rbp + 0x30], ecx
test esi, esi
je 0x140001ab1
lea r8, [rbp + 0x290]
mov r10d, esi
mov edx, edi
test ecx, ecx
je 0x140001a8c
mov r9, qword [r8]
mov eax, edx
cmp qword [rbp + rax*8 + 0x38], r9
je 0x140001a8c
inc edx
cmp edx, ecx
jb 0x140001a7d
cmp edx, ecx
jne 0x140001aa7
cmp ecx, 0x40
jae 0x140001aa7
mov rax, qword [r8]
mov ecx, edx
mov qword [rbp + rcx*8 + 0x38], rax
mov ecx, dword [rbp + 0x30]
inc ecx
mov dword [rbp + 0x30], ecx
add r8, 8
sub r10, 1
jne 0x140001a74
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140001c36
test eax, eax
je 0x140001c52
mov ebx, edi
cmp dword [rbp + 0x30], edi
jbe 0x140001a61
mov edi, ebx
jmp 0x140001b0a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
cmp eax, 0x2714
jne 0x140001944
mov rcx, qword [rbp + rdi*8 + 0x38]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x3c0]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_recvfrom]
nop dword [rax + rax]
test eax, eax
js 0x140001af3
mov edi, 0
cmp eax, 4
jb 0x140001a61
movups xmm0, xmmword [0x14001aec0]
lea rdx, [rbp + 0x240]
cmp eax, 0x2738
movsd xmm1, qword [0x14001aed0]
mov ecx, 0x80
cmove eax, ecx
movaps xmmword [rbp + 0x250], xmm0
lea rcx, [rsp + 0x70]
movsd qword [rbp + 0x260], xmm1
mov qword [rbp + 0x270], rcx
lea rcx, [0x14000be00]
mov qword [rbp + 0x278], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rcx
lea rcx, [0x14000b370]
mov qword [rbp - 0x78], rcx
lea rcx, [0x140019030]
mov qword [rbp - 0x58], rcx
lea rcx, [rbp + 0x3c0]
mov qword [rbp - 0x40], rcx
lea rcx, [rbp + 0x3c0]
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x60], 1
mov dword [rbp - 0x38], eax
call fcn.14000bfc0
test eax, eax
je 0x140001c0b
cmp dword [rbp + 0x248], edi
jne 0x140001c0b
mov eax, dword [rbp + 0x240]
cmp dword [rbp + 0x268], edi
je 0x140001c0d
mov eax, edi
cmp r15d, eax
jne 0x140001c26
lea rdx, [rbp + 0x20]
mov rcx, r13
call fcn.140001cb0
test eax, eax
jne 0x140001944
inc ebx
cmp ebx, dword [rbp + 0x30]
jb 0x140001aef
jmp 0x140001a61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
cmp eax, 0x2714
jne 0x140001944
jmp 0x140001a61
mov r10, qword [0x140019138]
lea rax, [0x140019138]
cmp r10, rax
je 0x140001c93
test byte [r10 + 0x1c], 0x10
je 0x140001c93
mov rax, qword [r13 + 0x18]
lea r9, [rbp + 0x330]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], r14d
call fcn.1400014b4
mov r10, qword [0x140019138]
mov rax, qword [r13 + 0x18]
inc r14d
cmp r14d, dword [rax + 4]
jbe 0x140001a10
jmp 0x14000194b