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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1d4
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x41b647
cmp dword [ebp + 0x10], 0
je 0x41b647
cmp dword [ebp + 0x14], 0
je 0x41b647
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
jg 0x41b657
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
xor eax, eax
jmp 0x41b9c3
cmp dword [ebp + 0x18], 0
jle 0x41b73a
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
jmp 0x41b686
mov eax, dword [ebp - 0x16c]
add eax, 1
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
cmp ecx, dword [ebp - 0x168]
jae 0x41b6ac
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + edx*4 - 0x164]
cmp ecx, dword [eax]
jne 0x41b6aa
jmp 0x41b6ac
jmp 0x41b677
mov edx, dword [ebp - 0x16c]
cmp edx, dword [ebp - 0x168]
jne 0x41b6e4
cmp dword [ebp - 0x168], 0x40
jae 0x41b6e4
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x164], edx
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x168], eax
xor ecx, ecx
jne 0x41b66b
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x41b73a
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor eax, eax
jmp 0x41b9c3
mov dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0xffffffff
jne 0x41b87f
push 0x492bdf
lea ecx, [ebp - 0x34]
call fcn.004055e0
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0x2714
jne 0x41b7af
push 0x4950ac
lea ecx, [ebp - 0x34]
call fcn.0040b9c0
jmp 0x41b827
mov eax, dword [ebp - 0x170]
cdq
push edx
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0041cda0
add esp, 0xc
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x17c]
push edx
push 0x4950dc
lea eax, [ebp - 0x1c4]
push eax
call fcn.0040cdb0
add esp, 0xc
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00401e60
lea ecx, [ebp - 0x1c4]
call fcn.00404910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.00404910
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x1a0], esp
push 0x4950ec
lea eax, [ebp - 0x34]
push eax
push edx
call fcn.004029d0
add esp, 0xc
mov dword [ebp - 0x1a4], eax
call fcn.0041b1c0
add esp, 0x18
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404910
mov eax, dword [ebp - 0x184]
jmp 0x41b9c3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x174]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x64]
call fcn.004055e0
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x224]
call fcn.00405650
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
push ecx
push 0x4950f4
lea edx, [ebp - 0x20c]
push edx
call fcn.0040ccf0
add esp, 0xc
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 4
push 0x4950f0
mov ecx, dword [ebp - 0x190]
push ecx
lea edx, [ebp - 0x1f4]
push edx
call fcn.0040cdf0
add esp, 0xc
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x19c]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c990
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1f4]
call fcn.00404910
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20c]
call fcn.00404910
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x224]
call fcn.00404910
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push 0x495100
lea edx, [ebp - 0x4c]
push edx
push ecx
call fcn.004029d0
add esp, 0xc
mov dword [ebp - 0x1ac], eax
call fcn.0041b1c0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00404910
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret