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

Disassembly:
mov eax, 0xfb2c
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0xfb24], eax
mov eax, dword [esp + 0xfb34]
push ebx
push ebp
mov ebp, dword [esp + 0xfb38]
mov dword [esp + 0xc], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x8c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [ebp + 0x22c]
imul ecx, ecx, 0x3e8
push esi
push edi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor edi, edi
push edi
push edi
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4044ba
lea esi, [ebp + 0x108]
mov ebx, 0x100
mov edi, str.select__:
call fcn.00406290
jmp 0x4047e0
cmp eax, edi
jne 0x4044c5
xor eax, eax
jmp 0x4047e3
test byte [ebp + 0x230], 2
lea esi, [ebp + 0x108]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
je 0x404538
mov eax, dword [ebp + 0x22c]
push edi
push 0xfa00
lea ecx, [esp + 0x138]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x404510
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
jmp 0x4047e0
cmp eax, edi
jne 0x40456d
cmp esi, edi
je 0x4047e0
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
mov byte [esi + 0xff], 0
jmp 0x4047dd
mov ebx, dword [ebp + 0x22c]
mov edi, edi
push 0
mov edx, 8
sub edx, edi
push edx
lea eax, [esp + edi + 0x138]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4044fc
test eax, eax
je 0x40459f
add edi, eax
cmp edi, 8
jne 0x404540
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x22c]
push 0
push 7
lea ecx, [esp + 0x138]
push ecx
push edx
mov ecx, esi
call fcn.004056b0
add esp, 0x10
cmp eax, 7
je 0x4045a6
cmp eax, 0xfffffffd
je 0x4047e0
xor eax, eax
jmp 0x4047e3
test esi, esi
jmp 0x404516
test byte [ebp + 0x230], 2
jne 0x4045fb
mov ebx, dword [ebp + 0x22c]
xor edi, edi
push 0
mov eax, 0x14
sub eax, edi
push eax
lea ecx, [esp + edi + 0x140]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4046cb
test eax, eax
je 0x4046e6
add edi, eax
cmp edi, 0x14
jne 0x4045b7
mov eax, edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4047e0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x140]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call edi
add eax, 0x10
cmp eax, dword [ebp + 0xb0]
ja 0x4047cd
mov eax, dword [ebp + 0xb4]
mov edx, dword [esp + 0x140]
mov esi, dword [esp + 0x14]
mov dword [ebx], eax
mov ecx, dword [ebp + 0xb4]
add ecx, 0x10
push edx
mov dword [esi], ecx
call edi
mov ecx, dword [ebx]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x144]
push edx
call edi
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x138]
push edx
call edi
mov ecx, dword [ebx]
mov dword [ecx], eax
mov edx, dword [esp + 0x13c]
push edx
call edi
mov ecx, dword [ebx]
mov dword [ecx + 4], eax
add dword [ebp + 0x9c], 1
test byte [ebp + 0x230], 2
je 0x40470c
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x150]
push ecx
push edx
call fcn.0040dcd0
mov eax, dword [esp + 0x154]
add esp, 0xc
push eax
call edi
mov ecx, dword [ebp + 0x9c]
cmp ecx, eax
je 0x4047c6
mov edx, eax
sub edx, ecx
add dword [ebp + 0x98], edx
mov dword [ebp + 0x9c], eax
mov eax, 1
jmp 0x4047e3
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
mov esi, dword [esp + 0x10]
or eax, 0xffffffff
jmp 0x4045ea
test esi, esi
je 0x404704
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x4045ea
mov eax, dword [ebx]
mov ebx, dword [eax + 8]
mov edx, dword [ebp + 0x22c]
mov ecx, esi
mov esi, dword [ecx]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], edx
je 0x404786
mov edx, dword [esp + 0x14]
push 0
mov eax, ebx
sub eax, edi
push eax
lea ecx, [edi + esi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40474c
test eax, eax
je 0x404761
add edi, eax
cmp edi, ebx
jne 0x404725
jmp 0x404786
mov esi, dword [esp + 0x10]
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
jmp 0x404783
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404783
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or edi, 0xffffffff
mov esi, dword [esp + 0x18]
add esi, edi
cmp esi, 0xffffffff
je 0x4047e0
mov eax, dword [esp + 0x134]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
cmp esi, eax
je 0x4047c6
mov ecx, dword [esp + 0x134]
push 0
push 0
push ecx
call edi
mov edx, dword [ebp + 0x22c]
mov ecx, eax
sub ecx, esi
push edx
call fcn.004067a0
add esp, 0xc
mov eax, 1
jmp 0x4047e3
push str.Received_a_packet_that_is_larger_than_the_internal_buffer_size.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0xfb34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0xfb2c
ret