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

Disassembly:
sub esp, 0x170
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x190]
mov ebp, ecx
mov bl, dl
push edi
mov edi, dword [esp + 0x184]
mov dword [esp + 0x14], edi
cmp ebp, 0xffffffff
jne 0x491771
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x20]
mov dword [esi], 0x2719
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x4919ba
cmp byte [esp + 0x190], 0
je 0x4917a2
test bl, 0x10
je 0x4917a2
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x4919ba
mov edi, dword [esp + 0x14]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push dword [esp + 0x198]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
push 0x5e4408
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x60]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0x40
jne 0x491820
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x20]
mov dword [esi], 0x2746
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x491850
cmp eax, 0x4d2
jne 0x491842
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x38]
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x491850
cmp eax, 0x2738
je 0x491859
cmp eax, 0xea
je 0x491859
test edi, edi
je 0x491859
or eax, 0xffffffff
jmp 0x49187e
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x44]
mov dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 8], 0x5e4408
test eax, eax
jg 0x4919bc
test bl, 0x10
je 0x49188b
test eax, eax
je 0x49196c
test bl, 1
jne 0x4919ba
mov eax, dword [esi]
cmp eax, 0x2733
jne 0x4918b2
mov ecx, dword [esi + 8]
cmp dword [ecx + 8], 0x25c5e09b
jne 0x4918b2
cmp dword [ecx + 0xc], 0x8fafd21e
je 0x4918da
cmp eax, 0x4d5
jne 0x4919ba
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x4919ba
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x4919ba
push 0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push eax
lea eax, [ebp + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push 0x5e4408
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x6c]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test edi, edi
jne 0x491948
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x50]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x49179e
jle 0x491963
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
test edi, edi
js 0x4919ba
jmp 0x49179e
call fcn.00438a80
mov edi, eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x491988
cmp eax, 0x8fafd21e
je 0x491997
cmp ecx, 0x257edf0d
jne 0x49199b
cmp eax, 0xb2ab117a
jne 0x49199b
mov al, 1
jmp 0x4919a6
mov eax, dword [edi]
mov ecx, edi
push 2
mov eax, dword [eax + 0x18]
call eax
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x2c]
mov dword [esi], 2
mov dword [esi + 4], eax
mov dword [esi + 8], edi
xor eax, eax
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x170
ret