Function at 0x1035e650
Capabilities:
Get socket status

Disassembly:
mov eax, 0x1a48
call fcn.10312230
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x1a44], eax
mov eax, dword [esp + 0x1a54]
mov ecx, dword [esp + 0x1a5c]
mov edx, dword [esp + 0x1a50]
and dword [esp], 0
push ebx
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1a60]
or ebx, 0xffffffff
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
test ecx, ecx
jne 0x1035e6ad
and dword [esp + 0x24], ecx
jmp 0x1035e6d6
mov eax, dword [ecx + 4]
cdq
mov esi, 0x3e8
idiv esi
cdq
mov ebx, eax
mov eax, dword [ecx]
imul eax, eax, 0x3e8
mov ebp, edx
cdq
add ebx, eax
mov eax, dword [esp + 0x14]
adc ebp, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
xor ebx, ebx
xor edi, edi
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x114c], edi
mov dword [esp + 0x1550], ebx
mov dword [esp + 0xd48], ebp
cmp dword [esp + 0x1a5c], ebx
jle 0x1035eb1c
jmp 0x1035e70a
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1035e71a
push edx
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1035e74a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1035e72e
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1035e74a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1035e86b
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035e867
push esi
call dword [sym.imp.MSVCR110.dll__get_osfhandle]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0x3c], eax
cmp eax, 0xffffffff
jne 0x1035e855
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1035e7ad
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035e7ad
xor eax, eax
test edi, edi
je 0x1035e78b
cmp dword [esp + eax*4 + 0x1150], esi
je 0x1035e78b
inc eax
cmp eax, edi
jb 0x1035e77d
cmp eax, edi
jne 0x1035e7ad
cmp edi, 0x100
jae 0x1035e7ad
mov dword [esp + eax*4 + 0x1150], esi
mov edi, dword [esp + 0x114c]
inc edi
mov dword [esp + 0x114c], edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1035e7f7
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035e7f7
xor eax, eax
test ebx, ebx
je 0x1035e7d5
cmp dword [esp + eax*4 + 0x1554], esi
je 0x1035e7d5
inc eax
cmp eax, ebx
jb 0x1035e7c7
cmp eax, ebx
jne 0x1035e7f7
cmp ebx, 0x100
jae 0x1035e7f7
mov dword [esp + eax*4 + 0x1554], esi
mov ebx, dword [esp + 0x1550]
inc ebx
mov dword [esp + 0x1550], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1035e845
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035e841
xor eax, eax
test ebp, ebp
je 0x1035e81f
cmp dword [esp + eax*4 + 0xd4c], esi
je 0x1035e81f
inc eax
cmp eax, ebp
jb 0x1035e811
cmp eax, ebp
jne 0x1035e841
cmp ebp, 0x100
jae 0x1035e841
mov dword [esp + eax*4 + 0xd4c], esi
mov ebp, dword [esp + 0xd48]
inc ebp
mov dword [esp + 0xd48], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp esi, dword [esp + 0x28]
jle 0x1035e86f
mov dword [esp + 0x28], esi
jmp 0x1035e86f
mov eax, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x1954], esi
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x1035e86f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, dword [esp + 0x1a5c]
jl 0x1035e706
test ecx, ecx
je 0x1035eb18
and dword [esp + 0x540], 0
and dword [esp + 0x944], 0
and dword [esp + 0x13c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, edx
adc ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
js 0x1035e93d
and dword [esp + 0x34], ebx
mov ecx, 0x101
lea esi, [esp + 0x114c]
lea edi, [esp + 0x540]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x101
lea esi, [esp + 0x1550]
lea edi, [esp + 0x944]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x101
lea esi, [esp + 0xd48]
lea edi, [esp + 0x13c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x94c]
push ecx
lea ecx, [esp + 0x54c]
push ecx
inc eax
push eax
mov dword [esp + 0x4c], 0x186a0
call dword [sym.imp.WS2_32.dll_select]
mov esi, dword [esp + 0x10]
mov ebx, eax
test esi, esi
jle 0x1035ea97
push 0x64
pop ecx
xor eax, eax
push 0x4bf
test ebx, ebx
cmovg ecx, eax
push ecx
push eax
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
or ecx, 0xffffffff
cmp eax, 0x102
je 0x1035ea9a
cmp eax, ecx
je 0x1035eacb
xor eax, eax
test ebx, ebx
cmovs ebx, eax
xor edi, edi
test esi, esi
jle 0x1035ea9a
push 0
push dword [esp + edi*4 + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1035ea8e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1035e9ed
mov esi, dword [esp + edi*4 + 0x1954]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035e9ed
mov ecx, dword [esp + 0x540]
xor eax, eax
test ecx, ecx
je 0x1035e9d3
cmp dword [esp + eax*4 + 0x544], esi
je 0x1035e9d3
inc eax
cmp eax, ecx
jb 0x1035e9c5
cmp eax, ecx
jne 0x1035e9ed
cmp ecx, 0x100
jae 0x1035e9ed
mov dword [esp + eax*4 + 0x544], esi
inc dword [esp + 0x540]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1035ea3d
mov esi, dword [esp + edi*4 + 0x1954]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035ea3d
mov ecx, dword [esp + 0x944]
xor eax, eax
test ecx, ecx
je 0x1035ea23
cmp dword [esp + eax*4 + 0x948], esi
je 0x1035ea23
inc eax
cmp eax, ecx
jb 0x1035ea15
cmp eax, ecx
jne 0x1035ea3d
cmp ecx, 0x100
jae 0x1035ea3d
mov dword [esp + eax*4 + 0x948], esi
inc dword [esp + 0x944]
test ebp, ebp
je 0x1035ea89
mov esi, dword [esp + edi*4 + 0x1954]
push ebp
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1035ea89
mov ecx, dword [esp + 0x13c]
xor eax, eax
test ecx, ecx
je 0x1035ea6f
cmp dword [esp + eax*4 + 0x140], esi
je 0x1035ea6f
inc eax
cmp eax, ecx
jb 0x1035ea61
cmp eax, ecx
jne 0x1035ea89
cmp ecx, 0x100
jae 0x1035ea89
mov dword [esp + eax*4 + 0x140], esi
inc dword [esp + 0x13c]
mov esi, dword [esp + 0x10]
inc ebx
inc edi
cmp edi, esi
jl 0x1035e989
or ecx, 0xffffffff
test ebx, ebx
jne 0x1035ead0
cmp dword [esp + 0x2c], ecx
jne 0x1035eaae
cmp dword [esp + 0x24], ebx
je 0x1035e8bd
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [esp + 0x30]
ja 0x1035ead0
jb 0x1035e8bd
cmp eax, dword [esp + 0x20]
jae 0x1035ead0
jmp 0x1035e8bd
test ebx, ebx
cmove ebx, ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1035eae8
mov ecx, 0x101
lea esi, [esp + 0x540]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1035eb00
mov ecx, 0x101
lea esi, [esp + 0x944]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
je 0x1035eb14
mov ecx, 0x101
lea esi, [esp + 0x13c]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
jmp 0x1035eb33
mov ecx, dword [esp + 0x20]
push ecx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x1a6c]
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x1a54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10311bec
add esp, 0x1a48
ret