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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2140
call fcn.0044ce10
push esi
push edi
lea edi, [ebp - 0x2140]
mov ecx, 0x850
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2020], 0
push 0x1fff
push 0
lea edx, [ebp - 0x201f]
push edx
call fcn.00446570
add esp, 0xc
mov eax, 1
test eax, eax
je 0x414e99
mov dword [ebp - 0x212c], 0
mov dword [ebp - 0x213c], 0
jmp 0x414c74
mov ecx, dword [ebp - 0x213c]
add ecx, 1
mov dword [ebp - 0x213c], ecx
mov edx, dword [ebp - 0x213c]
cmp edx, dword [ebp - 0x212c]
jae 0x414c98
mov eax, dword [ebp - 0x213c]
mov ecx, dword [ebp + eax*4 - 0x2128]
cmp ecx, dword [ebp - 0x18]
jne 0x414c96
jmp 0x414c98
jmp 0x414c65
mov edx, dword [ebp - 0x213c]
cmp edx, dword [ebp - 0x212c]
jne 0x414cce
cmp dword [ebp - 0x212c], 0x40
jae 0x414cce
mov eax, dword [ebp - 0x213c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x2128], ecx
mov edx, dword [ebp - 0x212c]
add edx, 1
mov dword [ebp - 0x212c], edx
xor eax, eax
jne 0x414c59
mov dword [ebp - 0x2140], 0
jmp 0x414ced
mov ecx, dword [ebp - 0x2140]
add ecx, 1
mov dword [ebp - 0x2140], ecx
mov edx, dword [ebp - 0x2140]
cmp edx, dword [ebp - 0x212c]
jae 0x414d11
mov eax, dword [ebp - 0x2140]
mov ecx, dword [ebp + eax*4 - 0x2128]
cmp ecx, dword [ebp - 0x1c]
jne 0x414d0f
jmp 0x414d11
jmp 0x414cde
mov edx, dword [ebp - 0x2140]
cmp edx, dword [ebp - 0x212c]
jne 0x414d47
cmp dword [ebp - 0x212c], 0x40
jae 0x414d47
mov eax, dword [ebp - 0x2140]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x2128], ecx
mov edx, dword [ebp - 0x212c]
add edx, 1
mov dword [ebp - 0x212c], edx
xor eax, eax
jne 0x414cd2
mov esi, esp
push 0
push 0
push 0
lea ecx, [ebp - 0x212c]
push ecx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp esi, esp
call fcn.004487d0
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
jg 0x414d82
jmp 0x414e99
lea edx, [ebp - 0x212c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x414e11
mov esi, esp
push 0
push 0x2000
lea ecx, [ebp - 0x2020]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004487d0
mov dword [ebp - 0x2138], eax
cmp dword [ebp - 0x2138], 0
jg 0x414dd0
jmp 0x414e99
mov eax, dword [ebp - 0x2138]
push eax
lea ecx, [ebp - 0x2020]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00414b00
add esp, 0xc
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
je 0x414e07
mov eax, dword [ebp - 0x2134]
cmp eax, dword [ebp - 0x2138]
je 0x414e11
jmp 0x414e99
lea ecx, [ebp - 0x212c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x414e94
mov esi, esp
push 0
push 0x2000
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004487d0
mov dword [ebp - 0x2138], eax
cmp dword [ebp - 0x2138], 0
jg 0x414e59
jmp 0x414e99
mov edx, dword [ebp - 0x2138]
push edx
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00414b00
add esp, 0xc
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
je 0x414e90
mov edx, dword [ebp - 0x2134]
cmp edx, dword [ebp - 0x2138]
je 0x414e94
jmp 0x414e99
jmp 0x414c42
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004487d0
mov esi, esp
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004487d0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x414ef4]
call fcn.00448770
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448800
add esp, 0x2140
cmp ebp, esp
call fcn.004487d0
mov esp, ebp
pop ebp
ret 4