Function at 0x14001fbd0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push r15
mov eax, 0x10200
call fcn.14002db10
sub rsp, rax
mov r15, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001fc02
xor eax, eax
add rsp, 0x10200
pop r15
ret
mov qword [rsp + 0x10210], rbx
lea rcx, [rsp + 0x1e0]
mov qword [rsp + 0x101f8], rbp
xor edx, edx
mov qword [rsp + 0x101f0], rsi
mov r8d, 0x10000
mov qword [rsp + 0x101e8], rdi
mov qword [rsp + 0x101e0], r14
call fcn.14002ec20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 1
mov byte [rsp + 0x1e2], 1
mov word [rsp + 0x1e0], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x140069678]
mov word [rsp + 0x1ec], ax
lea rbx, [rsp + 0x1f4]
xor sil, sil
call fcn.140008190
mov rdi, rax
test rax, rax
je 0x14001ff03
mov rbp, 0xffffffffffffffff
xor r8b, r8b
mov rax, rbp
inc rax
cmp byte [rdi + rax], 0
jne 0x14001fca0
test eax, eax
js 0x14001fd11
nop dword [rax]
movzx eax, r8b
movzx ecx, byte [rax + rdi]
cmp cl, 0x2e
je 0x14001fcc1
test cl, cl
jne 0x14001fcf5
movzx ecx, r8b
sub cl, sil
mov byte [rbx], cl
inc rbx
cmp sil, r8b
jae 0x14001fcf2
movzx eax, sil
add rax, rdi
movzx edx, cl
add sil, dl
nop
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rbx], cl
inc rbx
sub rdx, 1
jne 0x14001fce0
inc sil
inc r8b
mov rcx, rbp
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x14001fd00
movzx eax, r8b
cmp eax, ecx
jle 0x14001fcb0
mov byte [rbx], 0
mov r8, rbp
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x14001fd20
xor edx, edx
mov rcx, rdi
call fcn.14002ec20
mov rcx, rdi
call fcn.14002fc28
lea rax, [rsp + 0x1f4]
mov rbx, rbp
nop word [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14001fd50
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 1
mov word [rsp + rbx + 0x1f5], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + rbx + 0x1f7], ax
mov ebx, 2
mov edx, ebx
mov ecx, ebx
lea r8d, [rbx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, rbp
je 0x14001ff03
lea r9, [rsp + 0x10218]
mov dword [rsp + 0x10218], 0x7d0
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14001fefa
lea ecx, [rbx + 0x33]
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_htons]
xor edi, edi
mov word [rsp + 0x32], ax
cmp qword [r15 + 8], rdi
jbe 0x14001fefa
mov ecx, edi
nop dword [rax + rax]
mov rax, qword [r15]
mov rsi, qword [rax + rcx*8]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14001feec
lea rdx, [0x140069688]
call fcn.1400088e0
test rax, rax
jne 0x14001feec
mov rcx, qword [rsi + 0x50]
call fcn.1400080d0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov rcx, rbp
lea rax, [rsp + 0x1f4]
nop dword [rax]
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001fe50
lea r8d, [rcx + 0x19]
mov dword [rsp + 0x28], setsockopt
lea rax, [rsp + 0x30]
mov rcx, r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebp
je 0x14001fec9
lea rax, [rsp + 0x10220]
mov dword [rsp + 0x10220], 0x10
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x1e0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x10000
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, ebp
jne 0x14001ff3d
mov r8, rbp
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14001fed0
xor edx, edx
mov rcx, rbx
call fcn.14002ec20
mov rcx, rbx
call fcn.14002fc28
inc edi
mov ecx, edi
cmp rcx, qword [r15 + 8]
jb 0x14001fe00
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, qword [rsp + 0x101e8]
mov rsi, qword [rsp + 0x101f0]
mov rbp, qword [rsp + 0x101f8]
mov rbx, qword [rsp + 0x10210]
mov r14, qword [rsp + 0x101e0]
add rsp, 0x10200
pop r15
ret
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax]
inc rbp
cmp byte [rbx + rbp], 0
jne 0x14001ff50
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.14002ec20
mov rcx, rbx
call fcn.14002fc28
mov rcx, qword [rsi + 0x50]
call fcn.1400343b0
jmp 0x14001ff0b