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

Disassembly:
push ebp
sub esp, 0x58
push 0x50
mov eax, 0x5da83c
call fcn.005234b0
mov ebx, ecx
movzx eax, byte [0x67c84f]
push eax
lea eax, [ebx + 0x2a8]
push eax
lea ecx, [ebp + 0x10]
call fcn.004eb7c2
xor edi, edi
mov dword [ebp - 4], edi
mov al, byte [ebp + 0x14]
neg al
sbb eax, eax
test eax, fcn.0040dfd3
je 0x4efb44
xor esi, esi
inc esi
cmp dword [ebx + 0x168], 0xffffffff
jne 0x4ef4c9
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 0x38]
call fcn.00411742
mov byte [ebp - 4], 1
push edi
push esi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
lea ecx, [ebp + 0x4c]
push ecx
push 0x8004667e
push eax
mov dword [ebx + 0x168], eax
mov dword [ebp + 0x4c], esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [ebx + 0x168], 0xffffffff
jne 0x4ef4b7
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push edi
push str.NC.WaitforEvent.NoSignalSock
call fcn.004ac9bc
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, 0x721f30
call fcn.00430cd8
mov byte [ebp - 4], 0
cmp byte [ebp + 0x3c], 0
je 0x4ef4c9
mov ecx, dword [ebp + 0x38]
call fcn.0040df8b
push 0x104
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp + 0x44]
call fcn.004eab6f
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x44]
mov dword [eax], edi
mov eax, dword [ebp + 0x64]
imul eax, eax, 0x3e8
xor edx, edx
mov ecx, 0xf4240
div ecx
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x64], edi
mov dword [ebp], eax
mov eax, dword [ebx + 0x160]
cmp eax, 0xffffffff
mov dword [ebp + 4], edx
je 0x4ef548
mov esi, dword [ecx]
xor edx, edx
cmp esi, edi
jbe 0x4ef526
lea edi, [ecx + 4]
cmp dword [edi], eax
je 0x4ef526
inc edx
add edi, 4
cmp edx, esi
jb 0x4ef51a
cmp edx, esi
jne 0x4ef53b
cmp esi, 0x40
jae 0x4ef53b
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebp + 0x44]
inc dword [eax]
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebx + 0x160]
test eax, eax
jbe 0x4ef548
mov dword [ebp + 0x64], eax
mov edi, dword [ebx + 0x164]
cmp edi, 0xffffffff
je 0x4ef58a
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jbe 0x4ef56a
lea esi, [ecx + 4]
cmp dword [esi], edi
je 0x4ef56a
inc eax
add esi, 4
cmp eax, edx
jb 0x4ef55e
cmp eax, edx
jne 0x4ef57c
cmp edx, 0x40
jae 0x4ef57c
mov dword [ecx + eax*4 + 4], edi
mov eax, dword [ebp + 0x44]
inc dword [eax]
mov eax, dword [ebx + 0x164]
cmp eax, dword [ebp + 0x64]
jbe 0x4ef58a
mov dword [ebp + 0x64], eax
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 0x38]
call fcn.00411742
mov byte [ebp - 4], 4
cmp dword [ebx + 0x174], 0
jbe 0x4ef655
lea eax, [ebp + 0x18]
lea esi, [ebx + 0x16c]
push eax
mov ecx, esi
call fcn.004bdd13
mov ecx, esi
jmp 0x4ef63b
lea ecx, [ebp + 0x18]
call fcn.004fc6f0
cmp byte [eax + 8], 0
jne 0x4ef62d
mov eax, dword [ebp + 0x44]
xor esi, esi
cmp dword [eax], esi
jbe 0x4ef5f0
lea ecx, [ebp + 0x18]
mov edi, eax
call fcn.004fc6f0
mov ecx, dword [edi + esi*4 + 4]
cmp ecx, dword [eax]
mov eax, dword [ebp + 0x44]
je 0x4ef5f0
inc esi
cmp esi, dword [eax]
jb 0x4ef5d6
mov eax, dword [eax]
cmp esi, eax
jne 0x4ef611
cmp eax, 0x40
jae 0x4ef611
lea ecx, [ebp + 0x18]
call fcn.004fc6f0
mov eax, dword [eax]
mov ecx, dword [ebp + 0x44]
mov dword [ecx + esi*4 + 4], eax
mov eax, dword [ebp + 0x44]
inc dword [eax]
lea ecx, [ebp + 0x18]
call fcn.004fc6f0
mov ecx, dword [ebp + 0x64]
cmp dword [eax], ecx
jbe 0x4ef62d
lea ecx, [ebp + 0x18]
call fcn.004fc6f0
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
lea ecx, [ebp + 0x1c]
call fcn.004fc553
lea ecx, [ebx + 0x16c]
lea eax, [ebp + 0x2c]
push eax
call fcn.004eaa63
push eax
lea ecx, [ebp + 0x18]
call fcn.004eaa05
test al, al
je 0x4ef5bf
mov byte [ebp - 4], 3
cmp byte [ebp + 0x3c], 0
je 0x4ef667
mov ecx, dword [ebp + 0x38]
call fcn.0040df8b
push 0x104
call fcn.0051d97d
pop ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.004eab6f
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x24]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebx + 0x168]
cmp eax, 0xffffffff
je 0x4efb06
mov ecx, dword [ebp + 0x24]
mov esi, dword [ecx]
cmp edx, esi
jae 0x4ef6af
lea edi, [ecx + 4]
cmp dword [edi], eax
je 0x4ef6ad
inc edx
add edi, 4
cmp edx, esi
jb 0x4ef6a1
cmp edx, esi
jne 0x4ef6c2
cmp esi, 0x40
jae 0x4ef6c2
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebp + 0x24]
inc dword [eax]
mov ecx, dword [ebp + 0x24]
lea eax, [ebp]
push eax
mov eax, dword [ebp + 0x64]
push ecx
xor esi, esi
push esi
push dword [ebp + 0x44]
inc eax
push eax
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x4ef74c
push esi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.004ac6f7
mov byte [ebp - 4], 7
push esi
push str.ncSocket::WaitForEvent__:_Error_on_select:
lea ecx, [ebp - 0x54]
call fcn.004ac9bc
mov byte [ebp - 4], 8
push esi
sub esp, 0x24
mov eax, esp
mov dword [ebp + 0x64], esp
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
mov ecx, 0x721f30
call fcn.00430cd8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
call fcn.004ac66a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.004ac66a
jmp 0x4efacf
cmp eax, esi
je 0x4efacf
and dword [ebp + 0x50], esi
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 8]
call fcn.00411742
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 0x174]
test eax, eax
jbe 0x4ef887
lea esi, [ebx + 0x16c]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp + 0x54]
call fcn.004f2802
mov eax, dword [esi + 4]
push esi
push eax
jmp 0x4ef86b
lea ecx, [ebp + 0x54]
call fcn.004cdcec
mov esi, eax
lea edi, [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0x34], 0
jne 0x4ef858
push dword [ebp + 0x44]
push dword [ebp + 0x2c]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4ef858
mov esi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [ebp + 0x4c]
push eax
push 0x4004667f
push dword [ebp + 0x2c]
call esi
test eax, eax
jne 0x4ef858
cmp dword [ebp + 0x4c], eax
jbe 0x4ef80e
cmp dword [ebp + 0x50], eax
jne 0x4ef858
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0x5c]
push dword [ebp + 0x58]
lea ecx, [ebx + 0x16c]
push dword [ebp + 0x54]
push eax
call fcn.004fc6a4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x58], eax
jmp 0x4ef860
lea eax, [ebp + 0x40]
push eax
mov edi, 0x8004667e
push edi
push dword [ebp + 0x2c]
mov dword [ebp + 0x40], 1
call esi
push 2
push 1
lea eax, [ebp + 0x67]
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x4ef84a
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004c153b
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
jmp 0x4ef7ef
and dword [ebp + 0x40], 0
lea eax, [ebp + 0x40]
push eax
push edi
push dword [ebp + 0x2c]
call esi
lea ecx, [ebp + 0x54]
call fcn.004cdc1e
lea eax, [ebx + 0x16c]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp + 0x38]
call fcn.004f2802
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x54]
call fcn.004cdc46
test al, al
je 0x4ef797
mov byte [ebp - 4], 5
cmp byte [ebp + 0xc], 0
je 0x4ef899
mov ecx, dword [ebp + 8]
call fcn.0040df8b
xor edi, edi
cmp dword [ebp + 0x50], edi
je 0x4ef9af
push 0x378
call fcn.0051d97d
pop ecx
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 0xb
cmp eax, edi
je 0x4ef8ca
push 0xffffffffffffffff
push dword [ebp + 0x50]
mov ecx, eax
call fcn.004eb7f0
mov esi, eax
jmp 0x4ef8cc
xor esi, esi
mov byte [ebp - 4], 5
push esi
mov ecx, ebx
call fcn.004eeab3
mov ecx, esi
call fcn.004f08e2
cmp eax, edi
jne 0x4ef969
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x64], esp
push edi
push 0x69dd8c
call fcn.004ac9bc
mov byte [ebp - 4], 0xc
push esi
push 3
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x4c], esp
call fcn.004288e8
mov byte [ebp - 4], 0xd
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 5
call fcn.004d660d
mov byte [ebp - 4], 0xe
add esp, 0x30
lea eax, [ebp + 0x54]
mov ecx, esp
mov dword [ebp + 0x64], esp
push eax
call fcn.0041df35
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
mov ecx, 0x727378
call fcn.004c5d7e
mov eax, dword [ebp + 0x54]
mov byte [eax + 0x20], 1
mov ecx, dword [ebp + 0x54]
push edi
push ecx
push 0x4dc180
call fcn.004d6ae1
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x54]
call fcn.00448c99
jmp 0x4ef9af
cmp eax, 0xffffffff
jne 0x4ef995
push ebx
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x64], esp
push edi
push str._NC.SocketReuse.HttpInit.Failed
call fcn.004ac9bc
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 5
mov ecx, 0x721f18
call fcn.004bc4ff
push ebx
mov ecx, esi
call fcn.004eeab3
cmp esi, edi
je 0x4ef9af
mov ecx, esi
call fcn.004ef311
push esi
call fcn.0051d492
pop ecx
lea esi, [ebx + 0x160]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4efacf
push dword [ebp + 0x44]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4efacf
mov edi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
and dword [ebp + 0x58], 0
lea eax, [ebp + 0x58]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp + 0x58], 0
jne 0x4efacf
lea eax, [ebp + 0x50]
push eax
push 0x8004667e
push dword [esi]
mov dword [ebp + 0x50], 1
call edi
push 2
push 1
lea eax, [ebp + 0x67]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp + 0x40], eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp dword [ebp + 0x40], 0xffffffff
mov dword [ebp + 0x4c], eax
jne 0x4efa33
cmp eax, 0x2733
je 0x4efabe
cmp dword [ebp + 0x40], 0
je 0x4efa3f
cmp dword [ebp + 0x40], 0xffffffff
jne 0x4efabe
push 0
push esi
call fcn.004c153b
pop ecx
pop ecx
push 0
push str._NC.WaitForEvent.Disconnect_LE
lea ecx, [ebp - 0x30]
call fcn.004ac9bc
mov byte [ebp - 4], 0x11
push ebx
push 0
push 0
push dword [ebp + 0x4c]
lea ecx, [ebp - 0x54]
call fcn.004ac6f7
mov byte [ebp - 4], 0x12
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x4c], esp
push eax
lea eax, [ebp - 0x30]
push eax
push ecx
call fcn.004adc57
add esp, 0xc
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x12
mov ecx, 0x721f30
call fcn.004cc5c3
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.004ac66a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.004ac66a
and dword [ebx + 0x18c], 0
mov byte [ebx + 0x188], 0
and dword [ebp + 0x50], 0
lea eax, [ebp + 0x50]
push eax
push 0x8004667e
push dword [esi]
call edi
cmp dword [ebx + 0x174], 0
jbe 0x4efb2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x2a4]
mov edx, eax
sub edx, ecx
cmp edx, 0xbb8
jae 0x4efafd
cmp dword [ebx + 0x174], 0xa
ja 0x4efafd
cmp eax, ecx
jae 0x4efb2c
mov ecx, ebx
call fcn.004ee6ab
jmp 0x4efb2c
push edx
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x64], esp
push edx
push str.ncSocket::WaitForEvent__:_m_signalsock_is_INVALID_SOCKET
call fcn.004ac9bc
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, 0x721f18
call fcn.0041122b
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x24]
call fcn.004fc03d
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.004fc03d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004eaa29
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 4