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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rdx + 0x58]
mov rsi, rcx
mov rbx, rdx
test ah, 0x10
je 0x6e3cf8
test eax, 0x10000
jne 0x6e3cd0
mov edx, eax
lea rdi, [rbx + 0xc0]
lea rcx, [0x00c808c0]
mov qword [rbx + 0xc0], 0
or edx, 0x40000
mov qword [rsp + 0x58], rcx
lea rbp, [rbx + 0x80]
mov dword [rbx + 0x58], edx
mov qword [rbx + 0xc8], 0
mov dword [rsp + 0x50], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
test eax, 0x80000
je 0x6e3bda
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x6e3d80
or rax, 1
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 1
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x6e3c68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x6e3d20
mov edx, dword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
mov ecx, edx
add eax, 1
or ecx, 0x10000
and edx, 0x80000
mov dword [rbx + 0x58], ecx
mov dword [rbx + 0x78], eax
je 0x6e3c59
cmp qword [rbx + 0xf8], 0xffffffffffffffff
je 0x6e3db0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, dword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
mov ecx, edx
add eax, 1
or ecx, 0x10000
test edx, 0x20000
je 0x6e3c3d
mov dword [rbx + 0x78], eax
mov edi, dword [rsp + 0x48]
mov rax, qword [rsi + 0x48]
mov dword [rbx + 0x58], ecx
mov qword [rbx + 0xc8], rdi
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x6e3e20
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rbp
mov qword [rsi + 0x48], rbp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x1e4
lea rdx, str.src_win_tcp.c
lea rcx, [0x00959ad0]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6e3b65
mov r8d, 0x1e3
lea rdx, str.src_win_tcp.c
lea rcx, [0x00959aa8]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6e3b5a
mov rdi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rdi
test eax, eax
jle 0x6e3e30
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x6e3e40
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rbp
mov qword [rsi + 0x48], rbp
add dword [rbx + 0x78], 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x201
lea rdx, str.src_win_tcp.c
lea rcx, str.req__event_handle___NULL
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rbx + 0xf0]
jmp 0x6e3bcf
mov dword [rsp + 0x28], 4
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov r9, rbp
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x006e39b0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x6e3c59
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jle 0x6e3e50
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
jne 0x6e3caa
nop
mov qword [rbx + 0xe8], rbp
mov qword [rsi + 0x48], rbp
jmp 0x6e3c59
call rdi
cdqe
jmp 0x6e3d3d
mov qword [rbx + 0xe8], rbp
mov qword [rsi + 0x48], rbp
jmp 0x6e3d6f
call rdi
cdqe
jmp 0x6e3dff