Function at 0x18001c3ec
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x3c], 0
mov rax, qword [0x18006ab98]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
cmp qword [0x18006aba0], 0
jne 0x18001c445
mov ecx, 0x100000
call fcn.18003f844
mov qword [0x18006aba0], rax
cmp qword [rsp + 0x48], 0
je 0x18001c67f
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 1
je 0x18001c46c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18001c445
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x10], 4
jne 0x18001c56b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov rax, qword [0x18006aba0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rsp + 0x44], reloc.WS2_32.dll_recv
mov rax, qword [0x18006aba0]
add rax, 4
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0xffffc
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x18001c52a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001c506
jmp 0x18001c528
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006aba0]
call qword [rsp + WSAStartup]
jmp 0x18001c566
cmp dword [rsp + 0x30], 0
jbe 0x18001c566
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x18006aba0]
mov byte [rcx + rax + 4], 0
mov eax, dword [rsp + 0x30]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x18006aba0]
call qword [rsp + WSAStartup]
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x18001c66c
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov rax, qword [0x18006aba0]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
lea r8, [rsp + 0x34]
mov edx, 0x4004667f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x34], 0xffffc
jbe 0x18001c5b8
mov dword [rsp + 0x34], 0xffffc
cmp dword [rsp + 0x40], 0xffffffff
jne 0x18001c5e6
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006aba0]
call qword [rsp + WSAStartup]
jmp 0x18001c66c
cmp dword [rsp + 0x34], 0
jbe 0x18001c66c
mov rax, qword [0x18006aba0]
add rax, 4
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call fcn.18001c824
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x18001c63d
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006aba0]
call qword [rsp + WSAStartup]
jmp 0x18001c66c
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jne 0x18001c66c
mov eax, dword [rsp + 0x34]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x18006aba0]
call qword [rsp + WSAStartup]
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18001c445
mov eax, dword [rsp + 0x38]
add rsp, 0x60
pop rdi
ret