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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2140
call fcn.0044d670
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.00446de0
add esp, 0xc
mov eax, 1
test eax, eax
je 0x415419
mov dword [ebp - 0x212c], 0
mov dword [ebp - 0x213c], 0
jmp 0x4151f4
mov ecx, dword [ebp - 0x213c]
add ecx, 1
mov dword [ebp - 0x213c], ecx
mov edx, dword [ebp - 0x213c]
cmp edx, dword [ebp - 0x212c]
jae 0x415218
mov eax, dword [ebp - 0x213c]
mov ecx, dword [ebp + eax*4 - 0x2128]
cmp ecx, dword [ebp - 0x18]
jne 0x415216
jmp 0x415218
jmp 0x4151e5
mov edx, dword [ebp - 0x213c]
cmp edx, dword [ebp - 0x212c]
jne 0x41524e
cmp dword [ebp - 0x212c], 0x40
jae 0x41524e
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 0x4151d9
mov dword [ebp - 0x2140], 0
jmp 0x41526d
mov ecx, dword [ebp - 0x2140]
add ecx, 1
mov dword [ebp - 0x2140], ecx
mov edx, dword [ebp - 0x2140]
cmp edx, dword [ebp - 0x212c]
jae 0x415291
mov eax, dword [ebp - 0x2140]
mov ecx, dword [ebp + eax*4 - 0x2128]
cmp ecx, dword [ebp - 0x1c]
jne 0x41528f
jmp 0x415291
jmp 0x41525e
mov edx, dword [ebp - 0x2140]
cmp edx, dword [ebp - 0x212c]
jne 0x4152c7
cmp dword [ebp - 0x212c], 0x40
jae 0x4152c7
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 0x415252
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.00449040
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
jg 0x415302
jmp 0x415419
lea edx, [ebp - 0x212c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x415391
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.00449040
mov dword [ebp - 0x2138], eax
cmp dword [ebp - 0x2138], 0
jg 0x415350
jmp 0x415419
mov eax, dword [ebp - 0x2138]
push eax
lea ecx, [ebp - 0x2020]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00415080
add esp, 0xc
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
je 0x415387
mov eax, dword [ebp - 0x2134]
cmp eax, dword [ebp - 0x2138]
je 0x415391
jmp 0x415419
lea ecx, [ebp - 0x212c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x415414
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.00449040
mov dword [ebp - 0x2138], eax
cmp dword [ebp - 0x2138], 0
jg 0x4153d9
jmp 0x415419
mov edx, dword [ebp - 0x2138]
push edx
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00415080
add esp, 0xc
mov dword [ebp - 0x2134], eax
cmp dword [ebp - 0x2134], 0
je 0x415410
mov edx, dword [ebp - 0x2134]
cmp edx, dword [ebp - 0x2138]
je 0x415414
jmp 0x415419
jmp 0x4151c2
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449040
mov esi, esp
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449040
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x415474]
call fcn.00448fe0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x2140
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret 4