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

Disassembly:
push ebp
sub esp, 0x58
push 0x50
mov eax, 0x5bdfe3
call fcn.00518b46
mov ebx, ecx
movzx eax, byte [0x65ac97]
push eax
lea eax, [ebx + 0x2a8]
push eax
lea ecx, [ebp + 0x10]
call fcn.004dd3b8
xor edi, edi
mov dword [ebp - 4], edi
mov al, byte [ebp + 0x14]
neg al
sbb eax, eax
test eax, fcn.0040dc78
je 0x4e3441
xor esi, esi
inc esi
cmp dword [ebx + 0x168], 0xffffffff
jne 0x4e2dc6
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 0x38]
call fcn.00411378
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 0x4e2db4
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x58], esp
push edi
push str.NC.WaitforEvent.NoSignalSock
call fcn.0049eefc
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 0
cmp byte [ebp + 0x3c], 0
je 0x4e2dc6
mov ecx, dword [ebp + 0x38]
call fcn.0040dc30
push 0x104
call fcn.00511d1d
pop ecx
push eax
lea ecx, [ebp + 0x44]
call fcn.004db094
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 0x4e2e45
mov esi, dword [ecx]
xor edx, edx
cmp esi, edi
jbe 0x4e2e23
lea edi, [ecx + 4]
cmp dword [edi], eax
je 0x4e2e23
inc edx
add edi, 4
cmp edx, esi
jb 0x4e2e17
cmp edx, esi
jne 0x4e2e38
cmp esi, 0x40
jae 0x4e2e38
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 0x4e2e45
mov dword [ebp + 0x64], eax
mov edi, dword [ebx + 0x164]
cmp edi, 0xffffffff
je 0x4e2e87
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jbe 0x4e2e67
lea esi, [ecx + 4]
cmp dword [esi], edi
je 0x4e2e67
inc eax
add esi, 4
cmp eax, edx
jb 0x4e2e5b
cmp eax, edx
jne 0x4e2e79
cmp edx, 0x40
jae 0x4e2e79
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 0x4e2e87
mov dword [ebp + 0x64], eax
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 0x38]
call fcn.00411378
mov byte [ebp - 4], 4
cmp dword [ebx + 0x174], 0
jbe 0x4e2f52
lea eax, [ebp + 0x18]
lea esi, [ebx + 0x16c]
push eax
mov ecx, esi
call fcn.004ca80b
mov ecx, esi
jmp 0x4e2f38
lea ecx, [ebp + 0x18]
call fcn.004de459
cmp byte [eax + 8], 0
jne 0x4e2f2a
mov eax, dword [ebp + 0x44]
xor esi, esi
cmp dword [eax], esi
jbe 0x4e2eed
lea ecx, [ebp + 0x18]
mov edi, eax
call fcn.004de459
mov ecx, dword [edi + esi*4 + 4]
cmp ecx, dword [eax]
mov eax, dword [ebp + 0x44]
je 0x4e2eed
inc esi
cmp esi, dword [eax]
jb 0x4e2ed3
mov eax, dword [eax]
cmp esi, eax
jne 0x4e2f0e
cmp eax, 0x40
jae 0x4e2f0e
lea ecx, [ebp + 0x18]
call fcn.004de459
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.004de459
mov ecx, dword [ebp + 0x64]
cmp dword [eax], ecx
jbe 0x4e2f2a
lea ecx, [ebp + 0x18]
call fcn.004de459
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
lea ecx, [ebp + 0x1c]
call fcn.004de375
lea ecx, [ebx + 0x16c]
lea eax, [ebp + 0x2c]
push eax
call fcn.004de3e6
push eax
lea ecx, [ebp + 0x18]
call fcn.004b5fe2
test al, al
je 0x4e2ebc
mov byte [ebp - 4], 3
cmp byte [ebp + 0x3c], 0
je 0x4e2f64
mov ecx, dword [ebp + 0x38]
call fcn.0040dc30
push 0x104
call fcn.00511d1d
pop ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.004db094
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 0x4e3403
mov ecx, dword [ebp + 0x24]
mov esi, dword [ecx]
cmp edx, esi
jae 0x4e2fac
lea edi, [ecx + 4]
cmp dword [edi], eax
je 0x4e2faa
inc edx
add edi, 4
cmp edx, esi
jb 0x4e2f9e
cmp edx, esi
jne 0x4e2fbf
cmp esi, 0x40
jae 0x4e2fbf
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 0x4e3049
push esi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0049ec37
mov byte [ebp - 4], 7
push esi
push str.ncSocket::WaitForEvent__:_Error_on_select:
lea ecx, [ebp - 0x54]
call fcn.0049eefc
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.004a0106
add esp, 0xc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
call fcn.0049ebaa
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0049ebaa
jmp 0x4e33cc
cmp eax, esi
je 0x4e33cc
and dword [ebp + 0x50], esi
lea eax, [ebx + 0x254]
push eax
lea ecx, [ebp + 8]
call fcn.00411378
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 0x174]
test eax, eax
jbe 0x4e3184
lea esi, [ebx + 0x16c]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp + 0x54]
call fcn.004cdfd3
mov eax, dword [esi + 4]
push esi
push eax
jmp 0x4e3168
lea ecx, [ebp + 0x54]
call fcn.004f13c4
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 0x4e3155
push dword [ebp + 0x44]
push dword [ebp + 0x2c]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4e3155
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 0x4e3155
cmp dword [ebp + 0x4c], eax
jbe 0x4e310b
cmp dword [ebp + 0x50], eax
jne 0x4e3155
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.004d896b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x58], eax
jmp 0x4e315d
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 0x4e3147
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004b2e00
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
jmp 0x4e30ec
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.004dc6b0
lea eax, [ebx + 0x16c]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp + 0x38]
call fcn.004cdfd3
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x54]
call fcn.004c32b4
test al, al
je 0x4e3094
mov byte [ebp - 4], 5
cmp byte [ebp + 0xc], 0
je 0x4e3196
mov ecx, dword [ebp + 8]
call fcn.0040dc30
xor edi, edi
cmp dword [ebp + 0x50], edi
je 0x4e32ac
push 0x378
call fcn.00511d1d
pop ecx
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 0xb
cmp eax, edi
je 0x4e31c7
push 0xffffffffffffffff
push dword [ebp + 0x50]
mov ecx, eax
call fcn.004df0ed
mov esi, eax
jmp 0x4e31c9
xor esi, esi
mov byte [ebp - 4], 5
push esi
mov ecx, ebx
call fcn.004e23b0
mov ecx, esi
call fcn.004e41df
cmp eax, edi
jne 0x4e3266
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x64], esp
push edi
push 0x67c6e4
call fcn.0049eefc
mov byte [ebp - 4], 0xc
push esi
push 3
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x4c], esp
call fcn.00402202
mov byte [ebp - 4], 0xd
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 5
call fcn.004c7833
mov byte [ebp - 4], 0xe
add esp, 0x30
lea eax, [ebp + 0x54]
mov ecx, esp
mov dword [ebp + 0x64], esp
push eax
call fcn.00401434
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
mov ecx, 0x6ef180
call fcn.004ba0f3
mov eax, dword [ebp + 0x54]
mov byte [eax + 0x20], 1
mov ecx, dword [ebp + 0x54]
push edi
push ecx
push 0x4cd7ac
call fcn.004c7d74
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x54]
call fcn.004014ae
jmp 0x4e32ac
cmp eax, 0xffffffff
jne 0x4e3292
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.0049eefc
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 5
mov ecx, 0x6ed730
call fcn.004b4cba
push ebx
mov ecx, esi
call fcn.004e23b0
cmp esi, edi
je 0x4e32ac
mov ecx, esi
call fcn.004e2c0e
push esi
call fcn.005112a2
pop ecx
lea esi, [ebx + 0x160]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4e33cc
push dword [ebp + 0x44]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4e33cc
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 0x4e33cc
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 0x4e3330
cmp eax, 0x2733
je 0x4e33bb
cmp dword [ebp + 0x40], 0
je 0x4e333c
cmp dword [ebp + 0x40], 0xffffffff
jne 0x4e33bb
push 0
push esi
call fcn.004b2e00
pop ecx
pop ecx
push 0
push str._NC.WaitForEvent.Disconnect_LE
lea ecx, [ebp - 0x30]
call fcn.0049eefc
mov byte [ebp - 4], 0x11
push ebx
push 0
push 0
push dword [ebp + 0x4c]
lea ecx, [ebp - 0x54]
call fcn.0049ec37
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.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x12
mov ecx, 0x6ed748
call fcn.004c25fd
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0049ebaa
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0049ebaa
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 0x4e3429
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x2a4]
mov edx, eax
sub edx, ecx
cmp edx, 0xbb8
jae 0x4e33fa
cmp dword [ebx + 0x174], 0xa
ja 0x4e33fa
cmp eax, ecx
jae 0x4e3429
mov ecx, ebx
call fcn.004e1fa8
jmp 0x4e3429
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.0049eefc
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x24]
call fcn.004da9e8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.004da9e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004dd348
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 4