Function at 0x140049630
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rdi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14004998f
mov eax, dword [rcx + 8]
nop word cs:[rax + rax]
test eax, eax
je 0x14004998f
lea edx, [rax + 1]
lock cmpxchg dword [rcx + 8], edx
jne 0x140049670
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
test rcx, rcx
je 0x140049699
lock inc dword [rcx + 8]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
mov r12, qword [rax + 0xb0]
mov r15, qword [rax + 0xb8]
mov r14, qword [rdi + 0x10]
mov rax, rbp
mov qword [rbp - 0x28], rax
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
test rax, rax
mov qword [rbp - 0x10], rcx
je 0x1400496dc
mov rcx, qword [rax + 8]
jmp 0x1400496de
xor ecx, ecx
mov edx, 0xa8
call fcn.14002f1e0
mov rsi, rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x14004970a
mov rax, qword [rdi + 0x28]
lock inc dword [rbx + 0xc]
jmp 0x14004970c
xor eax, eax
dec r15
lea rdx, [rdi + 0x78]
movzx ecx, byte [rdi + 0x20]
mov qword [rsi + 0x20], 0
lea r8, [0x140049a00]
mov qword [rsi + 0x28], r8
mov dword [rsi + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi + 0x38], cl
movups xmmword [rsi + 0x40], xmm0
test rbx, rbx
je 0x140049784
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x48], rbx
lock inc dword [rbx + 0xc]
mov qword [rsi + 0x50], r12
mov qword [rsi + 0x58], r15
movaps xmm1, xmmword [rbp]
movups xmmword [rsi + 0x60], xmm1
movaps xmmword [rbp], xmm0
mov rcx, rsi
add rcx, 0x70
call fcn.14004a0e0
lock dec dword [rbx + 0xc]
jne 0x1400497a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
jmp 0x1400497a4
mov qword [rsi + 0x50], r12
mov qword [rsi + 0x58], r15
movaps xmm1, xmmword [rbp]
movups xmmword [rsi + 0x60], xmm1
movaps xmmword [rbp], xmm0
mov rcx, rsi
add rcx, 0x70
call fcn.14004a0e0
lea rbx, [rbp - 0x20]
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x30], r15
test byte [rdi + 0x20], 0x10
jne 0x1400497cc
mov rax, qword [r14 + 0x30]
add r14, 0x30
lock inc dword [rax + 0x30]
jmp 0x1400497e1
mov rax, qword [r14 + 0x30]
add r14, 0x30
lock inc dword [rax + 0x30]
test r15, r15
je 0x1400498a5
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x140049878
mov dword [rbp + 0x14], 0
mov dword [rbp - 4], 0
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
lea rdx, [rbp - 0x40]
mov r15d, 1
lea r9, [rbp + 0x14]
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
cmp eax, 0x40
mov eax, 0x2746
cmovne eax, ecx
mov r14, qword [r14]
test edi, edi
je 0x140049896
cmp eax, 0x3e5
je 0x140049896
mov ecx, dword [rbp + 0x14]
mov dword [rsi + 0x30], 1
lea rdx, [0x1400b3470]
mov qword [rsi], rdx
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], ecx
jmp 0x1400498c1
mov r14, qword [r14]
mov dword [rsi + 0x30], 1
lea rax, [0x1400b3470]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
jmp 0x1400498c1
xor eax, eax
lock cmpxchg dword [rsi + 0x30], r15d
cmp eax, 1
je 0x1400498c1
jmp 0x140049921
mov r14, qword [r14]
mov dword [rsi + 0x30], 1
lea rax, [0x1400b3470]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140049921
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [r14 + 0x98]
test rax, rax
je 0x140049901
mov qword [rax + 0x20], rsi
jmp 0x140049908
mov qword [r14 + 0x90], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
lea rcx, [rbp - 0x28]
call fcn.14004a250
mov rsi, qword [rbp + 8]
test rsi, rsi
mov rdi, qword [rbp - 0x10]
je 0x14004995a
lock dec dword [rsi + 8]
jne 0x14004995a
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock dec dword [rsi + 0xc]
jne 0x14004995a
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + ioctlsocket]
test rdi, rdi
je 0x14004997c
lock dec dword [rdi + 8]
jne 0x14004997c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock dec dword [rdi + 0xc]
jne 0x14004997c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
call fcn.140049370
int3