Function at 0x1019ed00
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 [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.10155630
mov dword [ebp - 0x22c], eax
cmp edi, 0xffffffff
mov dword [ebp - 0x230], ebx
je 0x1019ed6a
test edi, edi
jne 0x1019edd7
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.10156ff0
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 0x1019ef83
cmp ebx, 2
je 0x1019ef97
cmp ebx, 3
jne 0x1019f1ea
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 0x1019efaa
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 0x1019ee1a
mov dword [ebp - 0x220], 5
xor eax, eax
jmp 0x1019ee30
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 0x1019ee59
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 0x1019ee7a
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 0x1019ee9d
cmp ebx, 2
je 0x1019eeb6
cmp ebx, 1
jne 0x1019eed0
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x114]
push ecx
jmp 0x1019eec8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
xor eax, eax
jmp 0x1019eec7
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 0x1019f1ea
cmp ebx, 3
jne 0x1019ef24
test edx, edx
jle 0x1019ef24
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 0x1019f032
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 0x1019f053
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x1019f0a2
test edx, edx
jne 0x1019ed51
mov eax, edi
cmp dword [ebp - 0x238], 6
jl 0x1019ef74
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 0x1019edf2
jmp 0x1019ed3f
lea eax, [ebp - 0x220]
xor ecx, ecx
lea edx, [ebp - 0x114]
push eax
push ecx
push ecx
push edx
jmp 0x1019efa9
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 0x1019f1ea
cmp ebx, 3
jne 0x1019f089
test edx, edx
jle 0x1019f089
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 0x1019f06b
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 0x1019f05b
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1019f1fd
push eax
call fcn.10076620
jmp 0x1019f1f5
lea eax, [ebp - 0x228]
mov dword [eax], 4
lea ecx, [ebp - 0x224]
push eax
push ecx
push 0x1007
push 0xffff
push ebx
jmp 0x1019f00f
xor edx, edx
inc edx
jmp 0x1019ed51
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.101a4a30
jmp 0x1019f1f5
lea eax, [ebp - 0x114]
push eax
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
mov edx, dword [ebp - 0x238]
je 0x1019f089
mov edx, esi
jmp 0x1019ed51
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
jne 0x1019f0bd
and eax, 0xfffffffd
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 0xe0], eax
push 0
push 0xffffe897
jmp 0x1019ed46
test edx, edx
jne 0x1019ed51
lea esi, [ebp - 0x220]
xor edi, edi
mov eax, dword [ebp - 0x114]
cmp eax, 0x3f
mov edx, dword [ebp - 0x230]
ja 0x1019f0ee
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 0x1019f109
lea ecx, [eax + 1]
mov dword [ebp - 0x218], ecx
mov dword [ebp + eax*4 - 0x214], edx
cmp ebx, 3
je 0x1019f128
cmp ebx, 2
je 0x1019f132
cmp ebx, 1
jne 0x1019f1c8
push esi
push edi
push edi
lea eax, [ebp - 0x114]
push eax
jmp 0x1019f13c
push esi
lea eax, [ebp - 0x218]
push eax
jmp 0x1019f134
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 0x1019f1ea
cmp ebx, 3
jne 0x1019f19e
test edx, edx
jle 0x1019f19e
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 0x1019eff0
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 0x1019f209
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x1019f0a2
test edx, edx
je 0x1019f0cd
jmp 0x1019ed51
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
jne 0x1019f0cd
jmp 0x1019f0a2
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.101a57f0
add esp, 4
jmp 0x1019ed4e
push 0
push 0xffffe896
jmp 0x1019ed46
mov edx, eax
jmp 0x1019ed51