Function at 0x41b320
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov byte [ebp - 0x119], dl
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], ecx
push esi
mov esi, dword [ebp + 0x1c]
push edi
cmp ebx, 0xffffffff
jne 0x41b3b6
mov ecx, dword [eax]
mov eax, dword [0x4e33a4]
cmp eax, dword [ecx + 4]
jle 0x41b3ab
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], ebx
jne 0x41b3ab
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x2719
jmp 0x41b65b
mov edi, dword [eax]
mov eax, dword [ecx]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0xc]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov ecx, dword [0x4e33a4]
mov ebx, eax
cmp ecx, dword [edi + 4]
jle 0x41b42c
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b42c
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x120]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], 0x4e0be8
mov dword [ecx], eax
mov eax, dword [esi]
cmp eax, 0x40
jne 0x41b499
mov eax, dword [0x4e33a4]
cmp eax, dword [edi + 4]
jle 0x41b48a
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b48a
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x2746
mov dword [esi + 4], 0x4e0be8
jmp 0x41b4fa
cmp eax, 0x4d2
jne 0x41b4ec
mov eax, dword [0x4e33a4]
cmp eax, dword [edi + 4]
jle 0x41b4dd
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b4dd
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov dword [esi], 0x274d
mov dword [esi + 4], 0x4e0be8
jmp 0x41b4fa
cmp eax, 0x2738
je 0x41b4fe
cmp eax, 0xea
je 0x41b4fe
test ebx, ebx
jne 0x41b50f
mov eax, dword [ebp - 0xc]
mov dword [esi], 0
test eax, eax
jns 0x41b664
test byte [ebp - 0x119], 1
jne 0x41b662
mov ecx, dword [0x4e33a4]
cmp ecx, dword [edi + 4]
jle 0x41b562
push 0x4e33a4
call fcn.004882de
mov ecx, dword [0x4e33a4]
add esp, 4
cmp ecx, 0xffffffff
jne 0x41b562
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
mov ecx, dword [0x4e33a4]
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4e0bec]
jne 0x41b578
cmp dword [esi], 0x2733
je 0x41b5ce
cmp ecx, dword [edi + 4]
jle 0x41b5b0
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b5b0
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4e0bec]
jne 0x41b662
cmp dword [esi], 0x4d5
jne 0x41b662
mov ebx, dword [ebp - 0x128]
lea eax, [ebp - 0x118]
push 0
push 0
push 0
push eax
lea eax, [ebx + 1]
mov dword [ebp - 0x114], ebx
push eax
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x41b616
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x12c]
mov dword [esi], 0
jmp 0x41b3b8
mov eax, dword [0x4e33a4]
cmp eax, dword [edi + 4]
jle 0x41b653
push 0x4e33a4
call fcn.004882de
add esp, 4
cmp dword [0x4e33a4], 0xffffffff
jne 0x41b653
push 0x4bc0b0
call fcn.004885ae
add esp, 4
push 0x4e33a4
call fcn.0048828d
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x4e0be8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048824f
mov esp, ebp
pop ebp
ret