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

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x14], 0xa
cmp eax, edi
mov dword [esp + 0x18], edi
jne 0x404a8b
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x19a
call sub.MSVCRT.dll__CxxThrowException
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esi + 0xb4]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], eax
push 0
lea edx, [esp + 0x24]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x30], 1
call ebp
cmp eax, 0xffffffff
je 0x404c38
test eax, eax
je 0x404bdb
mov ecx, dword [esi + 0xb4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x404a97
cmp edi, 0x2800
jge 0x404b7e
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xb4]
mov eax, edi
push 0
add eax, ecx
push 1
push eax
push edx
inc edi
call ebx
cmp eax, 0xffffffff
je 0x404b21
mov eax, dword [esi + 0xb0]
cmp byte [edi + eax - 1], 0xa
je 0x404c95
jmp 0x404a97
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404b67
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404b43
inc eax
add ecx, 4
cmp eax, edx
jb 0x404b35
jmp 0x404b67
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404b62
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404b4e
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x67
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404bc4
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404ba0
inc eax
add ecx, 4
cmp eax, edx
jb 0x404b92
jmp 0x404bc4
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404bbf
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404bab
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x198
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404c21
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404bfd
inc eax
add ecx, 4
cmp eax, edx
jb 0x404bef
jmp 0x404c21
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404c1c
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404c08
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x192
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jbe 0x404c7e
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404c5a
inc eax
add ecx, 4
cmp eax, edx
jb 0x404c4c
jmp 0x404c7e
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x404c79
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
lea esi, [edx - 1]
cmp eax, esi
jb 0x404c65
dec edx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push 0x422748
push eax
mov dword [esp + 0x18], 0x6d
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 0xb0]
xor eax, eax
mov byte [edi + ecx], 0
mov edx, dword [esp + 0x1c]
test edx, edx
jbe 0x404ce5
mov esi, dword [esi + 0xb4]
lea ecx, [esp + 0x20]
cmp dword [ecx], esi
je 0x404cca
inc eax
add ecx, 4
cmp eax, edx
jb 0x404cb3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
dec edx
cmp eax, edx
jae 0x404ce5
lea ecx, [esp + eax*4 + 0x20]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
dec edx
cmp eax, edx
jb 0x404cd3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret