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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x808c], 0
jg 0x41e55a
cmp dword [ebp + 0xc], 0
jl 0x41e4a4
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x41e4ab
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 4]
add ecx, 0x84
mov edx, dword [ebp - 4]
add edx, 0x4088
push 0x4004
push ecx
push edx
call fcn.00465c50
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x4088
push ecx
push 0x1000
call dword [sym.imp.WS2_32.dll_select]
mov edx, dword [ebp - 4]
mov dword [edx + 0x808c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x808c], 0xffffffff
jne 0x41e51e
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0xffffff2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
or eax, 0xffffffff
jmp 0x41e843
mov eax, dword [ebp - 4]
cmp dword [eax + 0x808c], 0
jne 0x41e55a
cmp dword [ebp + 0xc], 0
jl 0x41e53c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0xffffff35
jmp 0x41e546
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], 0xffffff2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x5c], eax
or eax, 0xffffffff
jmp 0x41e843
jmp 0x41e565
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41e58c
mov ecx, dword [ebp - 8]
add ecx, 0x4088
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e58a
jmp 0x41e58c
jmp 0x41e55c
cmp dword [ebp - 4], 0
jne 0x41e5c0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], 0xffffff37
mov edx, dword [ebp - 8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x808c], 0
or eax, 0xffffffff
jmp 0x41e843
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x808c]
sub edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x808c], edx
mov dword [ebp - 0xc], 0
jmp 0x41e5e7
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x4088]
jae 0x41e65c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x408c]
cmp ecx, dword [eax + 0x80]
jne 0x41e65a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4088]
sub eax, 1
cmp dword [ebp - 0xc], eax
jae 0x41e643
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov eax, dword [esi + eax*4 + 0x4090]
mov dword [edx + ecx*4 + 0x408c], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x41e60d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4088]
sub eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4088], eax
jmp 0x41e65c
jmp 0x41e5de
xor edx, edx
jne 0x41e5d5
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x41e6d4
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041e0b0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41e6a0
mov edx, dword [ebp - 8]
mov dword [edx + 0x58], 0xffffff33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x5c], eax
or eax, 0xffffffff
jmp 0x41e843
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 1
jmp 0x41e6e7
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 1
je 0x41e840
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
and ecx, 4
je 0x41e70f
mov dword [ebp - 0x1c], 0x407
jmp 0x41e71e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
add eax, 0x8090
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x41e762
call fcn.0048a040
cmp dword [eax], 0x2714
jne 0x41e762
jmp 0x41e71e
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41e7ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0x2746
je 0x41e78c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0x2745
jne 0x41e7a3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
and edx, 4
jne 0x41e7a1
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0xffffff36
jmp 0x41e7ad
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0xffffff2c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
and eax, 4
jne 0x41e7c7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x60], edx
or eax, 0xffffffff
jmp 0x41e843
cmp dword [ebp - 0x10], 0
jg 0x41e818
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0xffffff36
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
and ecx, 4
jne 0x41e811
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60], eax
or eax, 0xffffffff
jmp 0x41e843
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], 0
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret