Function at 0x101a0dc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
mov dword [ebp - 0x234], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.10156040
mov dword [ebp - 0x22c], eax
cmp edi, 0xffffffff
mov dword [ebp - 0x230], ebx
je 0x101a0e2a
test edi, edi
jne 0x101a0e97
push 0
push 0xffffe89a
call sym.nss3.dll_PR_SetError
add esp, 8
xor edx, edx
dec edx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
mov esi, edx
call fcn.10157a00
mov eax, esi
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x220], 5
mov dword [ebp - 0x21c], 0
xor esi, esi
inc esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], ebx
mov ebx, dword [ebp - 0x234]
cmp ebx, esi
je 0x101a1043
cmp ebx, 2
je 0x101a1057
cmp ebx, 3
jne 0x101a12aa
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x218]
lea edx, [ebp - 0x114]
xor edi, edi
push eax
push ecx
push edx
push edi
push edi
jmp 0x101a106a
xor eax, eax
lea ecx, [ebp - 0x114]
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
mov dword [ecx], eax
xor esi, esi
dec esi
mov ebx, dword [ebp - 0x234]
push edi
call sym.nss3.dll_PR_IntervalToSeconds
add esp, 4
mov dword [ebp - 0x220], eax
cmp eax, 6
mov dword [ebp - 0x238], eax
jl 0x101a0eda
mov dword [ebp - 0x220], 5
xor eax, eax
jmp 0x101a0ef0
push eax
call sym.nss3.dll_PR_SecondsToInterval
add esp, 4
mov ecx, edi
sub ecx, eax
push ecx
call sym.nss3.dll_PR_IntervalToMicroseconds
add esp, 4
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x114]
cmp eax, 0x3f
mov edx, esi
ja 0x101a0f19
lea ecx, [eax + 1]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x230]
mov dword [ebp + eax*4 - 0x110], ecx
mov eax, dword [ebp - 0x218]
cmp eax, 0x3f
ja 0x101a0f3a
lea ecx, [eax + 1]
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x230]
mov dword [ebp + eax*4 - 0x214], ecx
cmp ebx, 3
je 0x101a0f5d
cmp ebx, 2
je 0x101a0f76
cmp ebx, 1
jne 0x101a0f90
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x114]
push ecx
jmp 0x101a0f88
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
xor eax, eax
jmp 0x101a0f87
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
lea ecx, [ebp - 0x114]
push ecx
push eax
push eax
call sub.wsock32.dll_select
mov edx, eax
cmp edx, 0xffffffff
je 0x101a12aa
cmp ebx, 3
jne 0x101a0fe4
test edx, edx
jle 0x101a0fe4
mov esi, edx
push 0
call dword [sym.imp.kernel32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
mov ebx, dword [ebp - 0x230]
push ebx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x101a10f2
lea eax, [ebp - 0x114]
push eax
push ebx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
mov ebx, dword [ebp - 0x234]
mov edx, esi
jne 0x101a1113
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x101a1162
test edx, edx
jne 0x101a0e11
mov eax, edi
cmp dword [ebp - 0x238], 6
jl 0x101a1034
push dword [ebp - 0x220]
call sym.nss3.dll_PR_SecondsToInterval
add esp, 4
mov esi, eax
push dword [ebp - 0x21c]
call sym.nss3.dll_PR_MicrosecondsToInterval
add esp, 4
add eax, esi
xor esi, esi
sub edi, eax
ja 0x101a0eb2
jmp 0x101a0dff
lea eax, [ebp - 0x220]
xor ecx, ecx
lea edx, [ebp - 0x114]
push eax
push ecx
push ecx
push edx
jmp 0x101a1069
lea eax, [ebp - 0x220]
xor ecx, ecx
lea edx, [ebp - 0x114]
push eax
push ecx
push edx
push ecx
push ecx
call sub.wsock32.dll_select
mov edx, eax
cmp eax, 0xffffffff
je 0x101a12aa
cmp ebx, 3
jne 0x101a1149
test edx, edx
jle 0x101a1149
mov dword [ebp - 0x238], edx
push 0
call dword [sym.imp.kernel32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
mov edi, dword [ebp - 0x230]
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x101a112b
lea eax, [ebp - 0x228]
mov dword [eax], 4
lea ecx, [ebp - 0x224]
push eax
push ecx
push 0x1007
push 0xffff
push edi
call sub.wsock32.dll_getsockopt
cmp eax, 0xffffffff
je 0x101a111b
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x101a12bd
push eax
call fcn.10077bc0
jmp 0x101a12b5
lea eax, [ebp - 0x228]
mov dword [eax], 4
lea ecx, [ebp - 0x224]
push eax
push ecx
push 0x1007
push 0xffff
push ebx
jmp 0x101a10cf
xor edx, edx
inc edx
jmp 0x101a0e11
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.101a6af0
jmp 0x101a12b5
lea eax, [ebp - 0x114]
push eax
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
mov edx, dword [ebp - 0x238]
je 0x101a1149
mov edx, esi
jmp 0x101a0e11
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
jne 0x101a117d
and eax, 0xfffffffd
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 0xe0], eax
push 0
push 0xffffe897
jmp 0x101a0e06
test edx, edx
jne 0x101a0e11
lea esi, [ebp - 0x220]
xor edi, edi
mov eax, dword [ebp - 0x114]
cmp eax, 0x3f
mov edx, dword [ebp - 0x230]
ja 0x101a11ae
lea ecx, [eax + 1]
mov dword [ebp - 0x114], ecx
mov dword [ebp + eax*4 - 0x110], edx
mov eax, dword [ebp - 0x218]
cmp eax, 0x3f
ja 0x101a11c9
lea ecx, [eax + 1]
mov dword [ebp - 0x218], ecx
mov dword [ebp + eax*4 - 0x214], edx
cmp ebx, 3
je 0x101a11e8
cmp ebx, 2
je 0x101a11f2
cmp ebx, 1
jne 0x101a1288
push esi
push edi
push edi
lea eax, [ebp - 0x114]
push eax
jmp 0x101a11fc
push esi
lea eax, [ebp - 0x218]
push eax
jmp 0x101a11f4
push esi
push edi
lea eax, [ebp - 0x114]
push eax
push edi
push edi
call sub.wsock32.dll_select
mov edx, eax
cmp eax, 0xffffffff
je 0x101a12aa
cmp ebx, 3
jne 0x101a125e
test edx, edx
jle 0x101a125e
mov esi, edx
push 0
call dword [sym.imp.kernel32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
mov edi, dword [ebp - 0x230]
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x101a10b0
lea eax, [ebp - 0x114]
push eax
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
mov edx, esi
mov eax, 1
lea esi, [ebp - 0x220]
mov edi, 0
jne 0x101a12c9
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x101a1162
test edx, edx
je 0x101a118d
jmp 0x101a0e11
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
jne 0x101a118d
jmp 0x101a1162
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.101a78b0
add esp, 4
jmp 0x101a0e0e
push 0
push 0xffffe896
jmp 0x101a0e06
mov edx, eax
jmp 0x101a0e11