Function at 0x140047520
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf10
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0xf00], rax
mov r14, r8
mov qword [rsp + 0x48], r8
mov r12, rdx
mov rdi, rcx
mov rax, qword [rsp + 0xf78]
mov qword [rsp + 0x90], rax
xor eax, eax
mov qword [rsp + 0x98], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
nop
mov qword [rsp + 0x70], rdi
lea rsi, [rdi + 0x11b18]
mov qword [rsp + 0x78], rsi
lea rbx, [rdi + 0x11bd0]
mov qword [rsp + 0x80], rbx
test rdi, rdi
je 0x140047ca8
test r14, r14
je 0x140047ca8
cmp r12, 0xffffffffffffffff
je 0x140047ca8
xor edx, edx
mov r8d, 0xa080
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r14
add r14, 0xa080
mov qword [rsp + 0x68], r14
xor edx, edx
mov dword [rsp + 0x98], edx
mov dword [rsp + 0x9c], 0xf4240
mov r15d, edx
mov qword [rsp + 0x58], rdx
mov r13d, 0xa080
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x88], r13
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0xa0], edx
mov eax, edx
mov dword [rsp + 0x40], edx
nop dword [rax]
mov ecx, eax
cmp eax, edx
jae 0x140047658
cmp qword [rsp + rcx*8 + 0xa8], r12
je 0x140047658
inc eax
mov dword [rsp + 0x40], eax
jmp 0x140047640
test eax, eax
jne 0x140047670
cmp edx, 0x40
jae 0x140047670
mov qword [rsp + rcx*8 + 0xa8], r12
inc dword [rsp + 0xa0]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r14d, 0xffffffff
je 0x140047817
test r14d, r14d
je 0x1400477eb
cmp r14d, 1
jne 0x140047ca8
lea rdx, [rsp + 0xa0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140047977
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2f7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f7
mov rdx, rsi
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400dcd10]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd224]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xe90
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400056d0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x1400477e6
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x1400477e6
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [rsi + 0x50], eax
jmp 0x140047ca8
cmp r15, 0xa05c
jbe 0x140047812
movabs rcx, 0x4000000000000000
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], rcx
jb 0x140047ca4
jmp 0x140047ca8
jmp 0x140047ca8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2745
jg 0x140047845
je 0x140047977
test eax, eax
je 0x140047977
sub ecx, 0x2726
je 0x140047977
cmp ecx, 0x10
jmp 0x14004785d
sub ecx, 0x2746
je 0x140047977
sub ecx, 3
je 0x140047977
cmp ecx, 1
je 0x140047977
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e8
mov rdx, rsi
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400dcd70]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd23c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xe65
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400056d0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x140047972
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140047972
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [rsi + 0x50], eax
jmp 0x140047ca8
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
cmp r14, rax
jae 0x1400479cd
sub rax, r14
cmp rax, r13
jb 0x1400479cd
lfence
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x48]
add r14, r15
mov qword [rsp + 0x50], r14
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
jmp 0x1400479d2
mov ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x140047c59
test r15, r15
jne 0x140047b48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2745
jg 0x140047a14
je 0x140047c59
mov edx, eax
test eax, eax
je 0x140047c59
sub edx, 0x2726
je 0x140047c59
cmp edx, 0x10
jmp 0x140047a2e
mov edx, eax
sub edx, 0x2746
je 0x140047c59
sub edx, 3
je 0x140047c59
cmp edx, 1
je 0x140047c59
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e8
mov rdx, rsi
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400dccb0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd20c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xf53
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400056d0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x140047b43
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140047b43
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [rsi + 0x50], eax
jmp 0x140047ca8
xor edx, edx
mov r8d, 0xc50
lea r14, [rsp + 0x2b0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2b4], eax
mov dword [rsp + 0x2f0], 3
mov dword [rsp + 0x2bc], 1
mov dword [rsp + 0x2f8], 0x2e8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2e8
mov rdx, rsi
mov rcx, rdi
call fcn.140002de0
mov dword [rsp + 0x2f4], eax
mov dword [rsp + 0x2fc], 5
lea rax, [0x1400dcc50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd1f4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x300]
call fcn.140001030
mov byte [rsp + 0xcf5], 0
mov dword [rsp + 0xcf8], 0xf5f
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x2cc], eax
inc dword [rsi + 0x30]
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400056d0
mov dword [rsi + 0x50], eax
test rbx, rbx
je 0x140047c57
mov qword [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi + 0x12820]
test rax, rax
je 0x140047c57
mov edx, 1
mov r8d, edx
mov rcx, rdi
call qword [0x1400a4c40]
mov dword [rsi + 0x50], eax
jmp 0x140047ca8
movsxd rax, ecx
add r15, rax
mov qword [rsp + 0x58], r15
mov r13, qword [rsp + 0x88]
sub r13, r15
mov qword [rsp + 0x60], r13
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x140047c89
inc qword [r14 + 8]
add qword [r14 + 0x18], rax
test ecx, ecx
jle 0x140047ca4
cmp r15, 0xa080
ja 0x140047ca4
test r13, r13
mov edx, 0
jne 0x140047630
xor eax, eax
jmp 0x140047cb4
mov eax, 1
jmp 0x140047cb4
mov rcx, qword [rsp + 0xf00]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0xf10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret