Function at 0x4ae2b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
mov ebx, edx
mov dword [esp + 0x18], 0
mov edx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 0xffffffff
jne 0x4ae312
cmp ebx, ecx
jne 0x4ae312
cmp dword [ebp + 8], ecx
jne 0x4ae312
mov ecx, edi
call fcn.004ae290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x4ae327
call fcn.004b6eb0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, edi
test edi, edi
cmovle ecx, eax
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], esi
cmp edx, 0xffffffff
je 0x4ae353
mov esi, 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x244], edx
or ecx, 0xffffffff
mov eax, edx
cmp edx, ecx
mov edx, esi
cmove eax, ecx
mov ecx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x240], ecx
cmp ebx, 0xffffffff
je 0x4ae3ea
xor eax, eax
test esi, esi
je 0x4ae382
cmp dword [esp + eax*4 + 0x34], ebx
je 0x4ae382
inc eax
cmp eax, esi
jb 0x4ae377
cmp eax, esi
jne 0x4ae398
cmp esi, 0x40
jae 0x4ae398
mov dword [esp + eax*4 + 0x34], ebx
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
xor eax, eax
test edx, edx
je 0x4ae3ae
nop
cmp dword [esp + eax*4 + 0x244], ebx
je 0x4ae3ae
inc eax
cmp eax, edx
jb 0x4ae3a0
mov ecx, edx
mov dword [esp + 0x240], ecx
cmp eax, edx
jne 0x4ae3dd
mov dword [esp + 0x240], ecx
cmp edx, 0x40
jae 0x4ae3dd
mov dword [esp + eax*4 + 0x244], ebx
mov ecx, dword [esp + 0x240]
inc ecx
mov dword [esp + 0x240], ecx
mov eax, dword [esp + 0x10]
cmp ebx, eax
cmova eax, ebx
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x138], 0
cmp edx, 0xffffffff
je 0x4ae443
xor eax, eax
mov dword [esp + 0x13c], edx
mov dword [esp + 0x138], 1
test ecx, ecx
je 0x4ae423
cmp dword [esp + eax*4 + 0x244], edx
je 0x4ae423
inc eax
cmp eax, ecx
jb 0x4ae415
cmp eax, ecx
jne 0x4ae43a
cmp ecx, 0x40
jae 0x4ae43a
mov dword [esp + eax*4 + 0x244], edx
inc dword [esp + 0x240]
mov eax, dword [esp + 0x10]
cmp edx, eax
cmova eax, edx
xor edx, edx
lea ecx, [esp + 0x24]
test edi, edi
cmovs ecx, edx
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
nop dword [eax + eax]
test edi, edi
jle 0x4ae48d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x28], eax
jmp 0x4ae49f
jne 0x4ae49f
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x244]
cmp dword [esp + 0x13c], ecx
push eax
lea eax, [esp + 0x140]
cmove eax, ecx
test esi, esi
push eax
lea eax, [esp + 0x3c]
cmove eax, ecx
push eax
push dword [esp + 0x3c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4ae52b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4ae4f2
cmp dword [0x755d64], 0
jne 0x4ae52f
cmp eax, 0x2714
jne 0x4ae52f
test edi, edi
jg 0x4ae4ff
mov esi, dword [esp + 0x30]
jmp 0x4ae457
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.004b6eb0
push edx
push eax
call fcn.004b6ee0
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x4ae549
mov esi, dword [esp + 0x30]
jmp 0x4ae460
test eax, eax
jns 0x4ae547
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
jne 0x4ae560
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x4ae598
lea ecx, [esp + 0x30]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [esp + 0x240]
push eax
push dword [esp + 0x1c]
cmovne esi, ecx
call edi
test eax, eax
je 0x4ae598
or esi, 4
cmp ebx, 0xffffffff
je 0x4ae5be
lea eax, [esp + 0x30]
push eax
push ebx
call edi
test eax, eax
je 0x4ae5ac
or esi, 8
lea eax, [esp + 0x240]
push eax
push ebx
call edi
test eax, eax
je 0x4ae5be
or esi, 4
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x4ae5ea
lea eax, [esp + 0x138]
push eax
push ebx
call edi
test eax, eax
je 0x4ae5d8
or esi, 2
lea eax, [esp + 0x240]
push eax
push ebx
call edi
test eax, eax
je 0x4ae5ea
or esi, 4
mov ecx, dword [esp + 0x34c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret