Function at 0x4e3210
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x324], esi
cmp ebx, esi
je 0x4e326b
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, esi
jbe 0x4e326b
nop
cmp dword [ebx + eax*8], 0xffffffff
jne 0x4e32aa
inc eax
cmp eax, edx
jb 0x4e3260
cmp ecx, esi
je 0x4e3297
jge 0x4e3290
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
cmp ecx, esi
jle 0x4e32e6
lea eax, [ebp - 0x34c]
push eax
mov dword [ebp - 0x324], ecx
call fcn.004f3990
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x334], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x330], edx
mov edx, dword [eax + 0xc]
add esp, 4
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x328], edx
xor ecx, ecx
xor edi, edi
xor eax, eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x314], 0xffffffff
mov dword [ebp - 0x31c], eax
mov edi, edi
xor edx, edx
mov word [ebx + eax*8 + 6], dx
mov edx, dword [ebx + eax*8]
cmp edx, 0xffffffff
je 0x4e33f7
movzx ebx, word [ebx + eax*8 + 4]
test bl, 7
je 0x4e33eb
cmp edx, dword [ebp - 0x314]
jbe 0x4e333f
mov dword [ebp - 0x314], edx
test bl, 1
je 0x4e337b
xor eax, eax
test ecx, ecx
je 0x4e335e
lea ebx, [ebx]
cmp dword [ebp + eax*4 - 0x208], edx
je 0x4e335e
inc eax
cmp eax, ecx
jb 0x4e3350
cmp eax, ecx
jne 0x4e337b
cmp ecx, 0x40
jae 0x4e337b
mov dword [ebp + eax*4 - 0x208], edx
mov ecx, dword [ebp - 0x20c]
inc ecx
mov dword [ebp - 0x20c], ecx
test bl, 4
je 0x4e33b1
xor eax, eax
test esi, esi
je 0x4e3394
cmp dword [ebp + eax*4 - 0x104], edx
je 0x4e3394
inc eax
cmp eax, esi
jb 0x4e3386
cmp eax, esi
jne 0x4e33b1
cmp esi, 0x40
jae 0x4e33b1
mov dword [ebp + eax*4 - 0x104], edx
mov esi, dword [ebp - 0x108]
inc esi
mov dword [ebp - 0x108], esi
test bl, 2
je 0x4e33eb
xor eax, eax
test edi, edi
je 0x4e33ce
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x30c], edx
je 0x4e33ce
inc eax
cmp eax, edi
jb 0x4e33c0
cmp eax, edi
jne 0x4e33eb
cmp edi, 0x40
jae 0x4e33eb
mov dword [ebp + eax*4 - 0x30c], edx
mov edi, dword [ebp - 0x310]
inc edi
mov dword [ebp - 0x310], edi
mov ebx, dword [ebp - 0x320]
mov eax, dword [ebp - 0x31c]
inc eax
mov dword [ebp - 0x31c], eax
cmp eax, dword [ebp + 0xc]
jb 0x4e3310
test ecx, ecx
jne 0x4e343d
test esi, esi
jne 0x4e343d
test edi, edi
jne 0x4e343d
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x4e342a
js 0x4e3271
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x324]
xor eax, eax
cmp dword [ebp - 0x318], eax
lea edx, [ebp - 0x33c]
setl al
dec eax
and eax, edx
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x314]
inc eax
mov dword [ebp - 0x314], eax
jmp 0x4e3482
mov edi, dword [ebp - 0x310]
mov esi, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x318]
xor eax, eax
cmp edx, eax
jle 0x4e34bd
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x33c], eax
imul eax, eax, 0x3e8
mov edx, ebx
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x338], edx
jmp 0x4e34cb
jne 0x4e34cb
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x31c]
neg edi
sbb edi, edi
push eax
lea edx, [ebp - 0x310]
and edi, edx
neg esi
sbb esi, esi
lea eax, [ebp - 0x108]
and esi, eax
mov eax, dword [ebp - 0x314]
neg ecx
push edi
sbb ecx, ecx
lea edx, [ebp - 0x20c]
push esi
and ecx, edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4e35aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4e3531
cmp dword [0x596860], 0
jne 0x4e327c
cmp eax, 0x2714
jne 0x4e327c
cmp dword [ebp - 0x318], 0
jle 0x4e3470
lea ecx, [ebp - 0x34c]
push ecx
call fcn.004f3990
mov edx, dword [ebp - 0x334]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x330]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x32c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x328]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004f3a40
mov ebx, dword [ebp - 0x318]
sub ebx, eax
add esp, 0x20
test ebx, ebx
jle 0x4e3297
jmp 0x4e3470
test eax, eax
js 0x4e327c
je 0x4e3297
mov esi, dword [ebp - 0x320]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
add esi, 6
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x4e361f
lea edx, [ebp - 0x20c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e35e8
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [ebp - 0x108]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e3600
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [ebp - 0x310]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e3618
or word [esi], 2
cmp word [esi], 0
je 0x4e361f
inc ebx
add esi, 8
dec edi
jne 0x4e35c6
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret