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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492fd1
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4bad80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x150]
call fcn.00420830
movzx eax, al
test eax, eax
je 0x41f6dc
cmp dword [ebp + 8], 0
je 0x41f6dc
cmp dword [ebp + 0xc], 1
jae 0x41f6e4
or eax, 0xffffffff
jmp 0x41fa12
mov dword [ebp - 0x11c], 0
push 0x100
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.00478f80
add esp, 0xc
mov dword [ebp - 0x12c], 0
cmp dword [ebp + 0x14], 0xffffffff
je 0x41f74a
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x120], edx
lea edx, [ebp - 0x124]
mov dword [ebp - 0x12c], edx
mov ecx, dword [ebp - 0x150]
call fcn.0041a2b0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x130], 0
jmp 0x41f773
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x11c]
jae 0x41f797
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + edx*4 - 0x118]
cmp eax, dword [ebp - 0x14]
jne 0x41f795
jmp 0x41f797
jmp 0x41f764
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x11c]
jne 0x41f7cd
cmp dword [ebp - 0x11c], 0x40
jae 0x41f7cd
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x14]
mov dword [ebp + edx*4 - 0x118], eax
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
xor edx, edx
jne 0x41f758
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x12c], 0
je 0x41f80a
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x41f87b
cmp dword [ebp + 0x10], 0
je 0x41f844
mov dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x10], eax
jmp 0x41f863
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], 0
jne 0x41f87b
push 0x2746
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41f9e5
lea ecx, [ebp - 0x13c]
call fcn.0040140f
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sock_Error_No____d__Thread_Id____d
lea edx, [ebp - 0x13c]
push edx
call fcn.00403328
add esp, 0x10
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.004055d6
movzx eax, al
test eax, eax
jne 0x41f925
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
lea edx, [ebp - 0x13c]
push edx
call fcn.0040152d
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x150]
add ecx, 4
push ecx
mov edx, esp
mov dword [ebp - 0x144], esp
push ecx
mov ecx, edx
call fcn.0040152d
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 0
call fcn.00420a60
add esp, 8
push 0
push 0
lea eax, [ebp - 0x138]
push eax
push 0x400
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x41f9c6
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.004055d6
movzx ecx, al
test ecx, ecx
jne 0x41f9b9
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
mov edx, dword [ebp - 0x138]
push edx
call fcn.00401736
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x150]
add ecx, 4
push ecx
mov edx, esp
mov dword [ebp - 0x14c], esp
push ecx
mov ecx, edx
call fcn.0040152d
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 0
call fcn.00420a60
add esp, 8
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0045928a
cmp dword [ebp - 0x10], 0
jl 0x41f9f6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x16c], ecx
jmp 0x41fa00
mov dword [ebp - 0x16c], 0xffffffff
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10