Function at 0x46c370
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 0x46c4f4
test eax, 0x20000
jne 0x46c4d0
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], 0x576828
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 0x46c3f1
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x46c570
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 0x46c480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46c520
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 0x46c478
cmp dword [ebx + 0x84], 0xffffffff
je 0x46c5a0
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 0x46c45d
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 0x46c610
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], 0x5475a4
call fcn.0049c730
mov eax, dword [ebx + 0x2c]
jmp 0x46c392
mov dword [esp + 8], 0x1e7
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x547580
call fcn.0049c730
mov eax, dword [ebx + 0x2c]
jmp 0x46c387
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jle 0x46c620
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 0x46c630
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.0049c730
mov eax, dword [ebx + 0x80]
jmp 0x46c3eb
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x46cc00
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 0x46c478
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x46c63b
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 0x46c4b8
nop
lea esi, [esi]
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x46c478
call esi
jmp 0x46c53a
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x28], edi
jmp 0x46c55b
call esi
jmp 0x46c5f6