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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.00426f20
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x211c], ecx
mov byte [ebp - 0x2014], 0
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x2013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
mov dl, byte [0x42c408]
test edx, edx
je 0x4206a6
mov dword [ebp - 0x2118], 0
mov dword [ebp - 0x2120], 0
jmp 0x4204c8
mov eax, dword [ebp - 0x2120]
add eax, 1
mov dword [ebp - 0x2120], eax
mov ecx, dword [ebp - 0x2120]
cmp ecx, dword [ebp - 0x2118]
jae 0x4204ec
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp + edx*4 - 0x2114]
cmp eax, dword [ebp - 0x10]
jne 0x4204ea
jmp 0x4204ec
jmp 0x4204b9
mov ecx, dword [ebp - 0x2120]
cmp ecx, dword [ebp - 0x2118]
jne 0x420522
cmp dword [ebp - 0x2118], 0x40
jae 0x420522
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp - 0x10]
mov dword [ebp + edx*4 - 0x2114], eax
mov ecx, dword [ebp - 0x2118]
add ecx, 1
mov dword [ebp - 0x2118], ecx
xor edx, edx
test edx, edx
jne 0x4204ad
mov dword [ebp - 0x2124], 0
jmp 0x420543
mov eax, dword [ebp - 0x2124]
add eax, 1
mov dword [ebp - 0x2124], eax
mov ecx, dword [ebp - 0x2124]
cmp ecx, dword [ebp - 0x2118]
jae 0x42056a
mov edx, dword [ebp - 0x2124]
mov eax, dword [ebp + edx*4 - 0x2114]
cmp eax, dword [ebp - 0x211c]
jne 0x420568
jmp 0x42056a
jmp 0x420534
mov ecx, dword [ebp - 0x2124]
cmp ecx, dword [ebp - 0x2118]
jne 0x4205a3
cmp dword [ebp - 0x2118], 0x40
jae 0x4205a3
mov edx, dword [ebp - 0x2124]
mov eax, dword [ebp - 0x211c]
mov dword [ebp + edx*4 - 0x2114], eax
mov ecx, dword [ebp - 0x2118]
add ecx, 1
mov dword [ebp - 0x2118], ecx
xor edx, edx
test edx, edx
jne 0x420528
push 0
push 0
push 0
lea eax, [ebp - 0x2118]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x4205d0
jmp 0x4206c9
lea ecx, [ebp - 0x2118]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42063a
push 0
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x42060a
jmp 0x4206c7
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x211c]
push ecx
call fcn.004203df
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x420635
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
je 0x42063a
jmp 0x4206c5
lea eax, [ebp - 0x2118]
push eax
mov ecx, dword [ebp - 0x211c]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4206a1
push 0
push 0x2000
lea edx, [ebp - 0x2014]
push edx
mov eax, dword [ebp - 0x211c]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x420677
jmp 0x4206c3
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x2014]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004203df
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42069f
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
je 0x4206a1
jmp 0x4206c1
jmp 0x420493
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x211c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x4206cb
jmp 0x4206a6
jmp 0x4206a6
jmp 0x4206a6
jmp 0x4206a6
jmp 0x4206a6
pop edi
mov esp, ebp
pop ebp
ret 4