Function at 0x46f3e0
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 0x46f564
test eax, 0x20000
jne 0x46f540
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], 0x6ab648
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 0x46f461
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x46f5e0
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 0x46f4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46f590
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 0x46f4e8
cmp dword [ebx + 0x84], 0xffffffff
je 0x46f610
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 0x46f4cd
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 0x46f680
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], 0x6463e4
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
jmp 0x46f402
mov dword [esp + 8], 0x1e7
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x6463c0
call fcn.004a0380
mov eax, dword [ebx + 0x2c]
jmp 0x46f3f7
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jle 0x46f690
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 0x46f6a0
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 fcn.004a0380
mov eax, dword [ebx + 0x80]
jmp 0x46f45b
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x46fc70
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 0x46f4e8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x46f6ab
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 0x46f528
nop
lea esi, [esi]
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x46f4e8
call esi
jmp 0x46f5aa
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x46f5cb
call esi
jmp 0x46f666