Function at 0x18001cbec
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 [0x18006bbb8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
cmp qword [0x18006bbc0], 0
jne 0x18001cc45
mov ecx, 0x100000
call fcn.18003ffe4
mov qword [0x18006bbc0], rax
cmp qword [rsp + 0x48], 0
je 0x18001ce7f
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 1
je 0x18001cc6c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18001cc45
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x10], 4
jne 0x18001cd6b
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 [0x18006bbc0]
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 [0x18006bbc0]
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 0x18001cd2a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001cd06
jmp 0x18001cd28
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006bbc0]
call qword [rsp + WSAStartup]
jmp 0x18001cd66
cmp dword [rsp + 0x30], 0
jbe 0x18001cd66
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x18006bbc0]
mov byte [rcx + rax + 4], 0
mov eax, dword [rsp + 0x30]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x18006bbc0]
call qword [rsp + WSAStartup]
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x18001ce6c
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 [0x18006bbc0]
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 0x18001cdb8
mov dword [rsp + 0x34], 0xffffc
cmp dword [rsp + 0x40], 0xffffffff
jne 0x18001cde6
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006bbc0]
call qword [rsp + WSAStartup]
jmp 0x18001ce6c
cmp dword [rsp + 0x34], 0
jbe 0x18001ce6c
mov rax, qword [0x18006bbc0]
add rax, 4
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call fcn.18001d024
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x18001ce3d
mov rax, qword [rsp + 0x48]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18006bbc0]
call qword [rsp + WSAStartup]
jmp 0x18001ce6c
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jne 0x18001ce6c
mov eax, dword [rsp + 0x34]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x18006bbc0]
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 0x18001cc45
mov eax, dword [rsp + 0x38]
add rsp, 0x60
pop rdi
ret