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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [edx + 0x2c]
test ah, 1
je 0x6dedc4
test eax, 0x20000
jne 0x6deda0
lea esi, [ebx + 0x64]
mov edx, eax
mov dword [ebx + 0x64], 0
or edx, 0x80000
test eax, 0x100000
lea edi, [ebx + 0x44]
mov dword [ebx + 0x2c], edx
mov dword [esp + 0x2c], 0x947a48
mov dword [esp + 0x28], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x6decc1
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x6dee40
or eax, 1
mov dword [ebx + 0x74], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSARecv]
sub esp, 0x1c
test eax, eax
je 0x6ded50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x6dedf0
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
mov ecx, edx
add eax, 1
or ecx, 0x20000
and edx, 0x100000
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x3c], eax
je 0x6ded48
cmp dword [ebx + 0x84], 0xffffffff
je 0x6dee70
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
mov ecx, edx
add eax, 1
or ecx, 0x20000
test edx, 0x40000
je 0x6ded2d
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x7c], 0
test eax, eax
mov dword [ebx + 0x68], edx
je 0x6deee0
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x7c], edx
mov dword [eax + 0x38], edi
mov dword [ebp + 0x28], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x1e8
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x86af44
call dbg._assert
mov eax, dword [ebx + 0x2c]
jmp 0x6dec62
mov dword [esp + 8], 0x1e7
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x86af20
call dbg._assert
mov eax, dword [ebx + 0x2c]
jmp 0x6dec57
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jle 0x6deef0
call esi
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x64], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x7c], 0
test eax, eax
je 0x6def00
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x7c], edx
mov dword [eax + 0x38], edi
mov dword [ebp + 0x28], edi
add dword [ebx + 0x3c], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x205
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], str.req__event_handle
call dbg._assert
mov eax, dword [ebx + 0x80]
jmp 0x6decbb
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], sym._post_completion_8
mov dword [esp + 4], eax
lea eax, [ebx + 0x84]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
sub esp, 0x18
test eax, eax
jne 0x6ded48
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x6def0b
call esi
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x64], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x7c], 0
test eax, eax
jne 0x6ded88
nop
lea esi, [esi]
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x6ded48
call esi
jmp 0x6dee0a
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x6dee2b
call esi
jmp 0x6deec6