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

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
test eax, eax
je 0x402b4d
mov ecx, dword [esp + 0x118]
push ecx
push eax
mov ecx, esi
call fcn.00402330
pop esi
add esp, 0x110
ret 4
cmp dword [esi + 0x128], 0
mov edx, dword [esp + 0x118]
mov eax, dword [edx + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
jne 0x402b83
push 0x4add68
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x19a
call fcn.0041125d
mov eax, dword [esi + 0x12c]
push edi
lea edx, [esp + 0xc]
push edx
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
add eax, 1
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402c14
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x402bfd
mov esi, dword [esi + 0x12c]
cmp dword [esp + eax*4 + 0x18], esi
je 0x402bd4
add eax, 1
cmp eax, ecx
jb 0x402bc5
jmp 0x402bfd
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402bf6
jmp 0x402be0
mov ecx, dword [esp + eax*4 + 0x1c]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + 0x14]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402be0
sub ecx, 1
mov dword [esp + 0x14], ecx
push 0x4add68
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x6d
call fcn.0041125d
test edi, edi
jne 0x402c74
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x402c5d
mov esi, dword [esi + 0x12c]
cmp dword [esp + eax*4 + 0x18], esi
je 0x402c37
add eax, 1
cmp eax, ecx
jb 0x402c28
jmp 0x402c5d
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402c56
mov edi, edi
mov ecx, dword [esp + eax*4 + 0x1c]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + 0x14]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402c40
sub ecx, 1
mov dword [esp + 0x14], ecx
push 0x4add68
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x192
call fcn.0041125d
mov edx, dword [esi + 0x12c]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x402d14
mov eax, dword [esi + 0x128]
mov ecx, dword [esi + 0x12c]
push 0
push 0x2800
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d14
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x402cfd
mov esi, dword [esi + 0x12c]
nop
cmp dword [esp + eax*4 + 0x18], esi
je 0x402ccf
add eax, 1
cmp eax, ecx
jb 0x402cc0
jmp 0x402cfd
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402cf6
jmp 0x402ce0
mov ecx, dword [esp + eax*4 + 0x1c]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + 0x14]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402ce0
sub ecx, 1
mov dword [esp + 0x14], ecx
push 0x4add68
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x67
call fcn.0041125d
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x402d5d
mov edx, dword [esi + 0x12c]
cmp dword [esp + eax*4 + 0x18], edx
je 0x402d33
add eax, 1
cmp eax, ecx
jb 0x402d24
jmp 0x402d5d
lea edx, [ecx - 1]
cmp eax, edx
jae 0x402d56
lea ebx, [ebx]
mov ecx, dword [esp + eax*4 + 0x1c]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + 0x14]
add eax, 1
lea edx, [ecx - 1]
cmp eax, edx
jb 0x402d40
sub ecx, 1
mov dword [esp + 0x14], ecx
test edi, edi
mov eax, dword [esi + 0x128]
mov byte [edi + eax], 0
jne 0x402d82
push 0x4add68
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x190
call fcn.0041125d
pop edi
pop esi
add esp, 0x110
ret 4